API Gateway
Set Active Org
Set the active organization for the current session
put/v2/user/active-org
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"
}
]
}
]
}
}
}