v1

latestOpenAPI 3.0.0Apache 2.02026-07-26322141.0 KB
API Gateway

Set Active Org

Set the active organization for the current session

put/v2/user/active-org

Request body

orgSlugstring required

Response

Success — returns updated org details

permissionsstring[]

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"
            }
          ]
        }
      ]
    }
  }
}