Create Context
POST /api/v1/contexts. Request parameters and response schemas.
POST
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
application/json- body
name*stringdescription?null|stringowner*ContextOwnerValue in
"personal""workspace"repositories?null|array<|||>Created
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 POST 'https://example.com/api/v1/contexts' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "owner": "personal"}'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}