Skip to content

createOrgSwitchSession

Generate a new authentication token for a user to switch organizations.

Arguments

Argument Type Description
input (required) CreateOrgSwitchSessionInput! Input for CreateOrgSwitchSessionRequest.

Returns

CreateOrgSwitchSessionReply!

Sample

mutation CreateOrgSwitchSession($input: CreateOrgSwitchSessionInput!) {
  createOrgSwitchSession(input: $input) {
    accessToken
  }
}
{
  "input": {
    "orgId": "example-string"
  }
}
{
  "data": {
    "createOrgSwitchSession": {
      "accessToken": "example-string"
    }
  }
}