ReferenceWorkspaces

Set the active workspace

Switches the tenant's active workspace.

Subsequent calls that do not name a memory resolve against this workspace's primary memory.

POST
/api/v1/workspaces/{workspace_id}/activate

Authorization

ApiKeyAuth
x-api-key<token>

A platform key (ck_live_…). Mint one in the console under Settings → API Keys.

In: header

Path Parameters

workspace_id*string

Response Body

application/json

curl -X POST "https://example.com/api/v1/workspaces/wsp_a1b2c3d4/activate"
{  "workspace": {    "workspace_id": "string",    "tenant_id": "string",    "name": "string",    "description": "string",    "slug": "string",    "is_default": true,    "primary_memory_id": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}
Was this page helpful?
Report an issue