Skip to main content
PATCH
/
context
/
repository
Update context repository
curl --request PATCH \
  --url https://api.getcargo.io/v1/context/repository \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": {
    "kind": "<string>"
  }
}
'
{
  "repository": {
    "uuid": "<string>",
    "workspaceUuid": "<string>",
    "source": {
      "kind": "<string>"
    },
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body schema for updating a context repository.

source
Source · object

Repository source configuration. Either { kind: "managed" } or { kind: "custom", connectorUuid: "..." }.

Response

Successful response

repository
Repository · object
required

The updated context repository configuration.