Users

Switch active organization for authenticated user

Changed on

Switch the active organization context for the authenticated user

put/{realm}/users/switch-organization

Request

  • Base URL: https://app.phasetwo.io/realms
  • URL: https://app.phasetwo.io/realms/{realm}/users/switch-organization
  • Auth: HTTP bearer

Request body

idstring required

The ID of the organization to switch to

Response

Active organization switched successfully. Returns a new token set reflecting the updated active organization; clients should replace their stored tokens with these.

access_tokenstring
expires_ininteger
refresh_expires_ininteger
refresh_tokenstring
token_typestring
id_tokenstring
not-before-policyinteger
session_statestring
scopestring

Changes

    • breaking

      the request property became required

    • breaking

      removed the success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the success response with the status

    • warning

      removed the request property

    • info

      added the new optional request property