API Gateway
Set Active Org
Set the active organization for the current session
put/v2/user/active-org
Request
- Base URLhttps://api.studio.prisme.ai
- Auth
- HTTP bearer
- or API key in header x-prismeai-api-key
- or HTTP bearer and API key in header x-prismeai-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Success — returns updated org details
Example response
{
"org": {
"navigation": {
"menu": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
],
"footer": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
],
"quickActions": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.