Skip to main content
POST
/
auth
/
organization
/
set-active
Set Organization Active
curl --request POST \
  --url https://cloud.kaneo.app/api/auth/organization/set-active \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "organizationId": "<string>",
  "organizationSlug": "<string>"
}
'
{
  "name": "<string>",
  "slug": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "logo": "<string>",
  "metadata": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
organizationId
string | null
organizationSlug
string | null

The organization slug to set as active. It can be null to unset the active organization if organizationId is not provided. Eg: "org-slug"

Response

Success

The organization

name
string
required
slug
string
required
createdAt
string<date-time>
required
id
string | null
logo
string | null
metadata
string | null
description
string | null