Skip to main content
PUT
/
v2
/
user
/
active-org
Set Active Org
curl --request PUT \
  --url https://api.studio.prisme.ai/v2/user/active-org \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orgSlug": "<string>"
}
'
{
  "org": {
    "slug": "<string>",
    "name": "<string>",
    "status": "<string>",
    "branding": {},
    "navigation": {
      "version": 123,
      "homePage": "<string>",
      "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"
            }
          ]
        }
      ]
    },
    "role": {
      "slug": "<string>",
      "name": "<string>",
      "permissions": [
        "<string>"
      ],
      "scopes": [
        "<string>"
      ]
    },
    "groups": [
      "<string>"
    ],
    "settings": {},
    "subscription": {
      "slug": "<string>",
      "name": "<string>",
      "tier": "<string>",
      "id": "<string>",
      "plan": "<string>",
      "isDefault": true,
      "limits": {},
      "features": {},
      "billing": {},
      "startedAt": "<string>",
      "expiresAt": "<string>",
      "createdBy": "<string>",
      "updatedBy": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  },
  "permissions": [
    "<string>"
  ],
  "organizations": [
    {
      "slug": "<string>",
      "name": "<string>",
      "roleSlug": "<string>",
      "groups": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
orgSlug
string
required

Response

Success — returns updated org details

org
object
permissions
string[]
organizations
object[]