Authentication
POST/v1/auth/switch-org

Switch organization

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/auth/switch-org" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"org_id":"org_01jd2x3k4m5n6p7q8r9s0t1v2w"}'

Sets the session's current organization. Console session only; the user must be a member of the target organization.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/auth/switch-orgBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
Body

application/json · required. Fields are listed under Request body below.

Authorization

session
cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
org_id*Org Id

Organization id (org_...).

Response Body

Success.

application/json
  1. response
ok*Ok
[key: string]?any