CorfedoCorfedoDocs
ReferenceAPI referenceSearch and read

Create Context

POST /api/v1/contexts. Request parameters and response schemas.

POST
/api/v1/contexts

Authorization

headerAuthorizationBearer <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

Request Body

application/json
  1. body
name*string
description?null|string
owner*ContextOwner
Value in"personal""workspace"
repositories?null|array<|||>

Response Body

Created

application/json
  1. response
contextId*string
Formatuuid
name*string
description?null|string
owner*ContextOwner
Value in"personal""workspace"
revision*string

Canonical UInt64 decimal string (0 through 18446744073709551615).

Match^(0|[1-9][0-9]*)$
Lengthlength <= 20
createdAt*string
Formatdate-time
changedAt*string
Formatdate-time
repositoryCount*integer
Formatint32
Range-2147483648 <= value <= 2147483647
inaccessibleCount?|
Formatint32
Range-2147483648 <= value <= 2147483647
manageable*boolean
Example Request
curl -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}