Change Context
PATCH /api/v1/contexts/{contextId}. Request parameters and response schemas.
PATCH
header
AuthorizationBearer <token>Corfedo-issued bearer credential for the workspace's API resource, such as https://workspace.corfedo.example/api; the workspace host is the issuer. Public clients identify themselves with a Client ID Metadata Document URL and use PKCE S256; service clients use private_key_jwt. Browser cookies and MCP-resource credentials are not accepted.
Scope: corfedo:tenant:contexts:write, corfedo:repositories:code:read
contextId*stringFormat
uuidapplication/json- body
revision*stringCanonical UInt64 decimal string (0 through 18446744073709551615).
Match
^(0|[1-9][0-9]*)$Length
length <= 20name?null|stringdescription?null|stringadd?null|array<|||>remove?null|array<|||>removeInaccessible?null|booleanOK
application/json- response
contextId*stringFormat
uuidname*stringdescription?null|stringowner*ContextOwnerValue in
"personal""workspace"revision*stringCanonical UInt64 decimal string (0 through 18446744073709551615).
Match
^(0|[1-9][0-9]*)$Length
length <= 20createdAt*stringFormat
date-timechangedAt*stringFormat
date-timerepositoryCount*integerFormat
int32Range
-2147483648 <= value <= 2147483647inaccessibleCount?|Format
int32Range
-2147483648 <= value <= 2147483647manageable*booleancurl -X PATCH 'https://example.com/api/v1/contexts/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "revision": "string"}'Example Response
{ "contextId": "84451116-c600-49e2-9c60-5b6b34fae0d6", "name": "string", "description": null, "owner": "personal", "revision": "string", "createdAt": "2019-08-24T14:15:22Z", "changedAt": "2019-08-24T14:15:22Z", "repositoryCount": -2147483648, "inaccessibleCount": null, "manageable": true}