session.org.switch

The session.org.switch command is used to switch a user session between organizations.

This command can only be used by a user. An application connected to the platform cannot use this command. The application is locked to an organization.

TR50 Request

{
  "cmd": {
    "command": "session.org.switch",
    "params": {
      "key": "SYSTEM"
    }
  }
}

Request Parameters

Name Type Required Description
key String Yes The organization key to switch to.

TR50 Response

If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.

{
  "cmd": {
    "success": true
  }
}

PHP API

bool TR50httpWorker::sessionOrgSwitch($key);