org.create

The org.create command is used to create a new organization.

Requires Org Admin rights.

TR50 Request

{
  "1": {
    "command": "org.alert.create",
    "params": {
        "startTs": "0001-01-01T00:00:00Z",
        "endTs": null,
        "message": "",
        "priority": 0,
        "level": "normal",
        "ackOnDismissal": false,
        "ackMessage": "",
        "ackButton": "",
        "global": false,
        "orgProfileIds": ["52a1d3db169e1fd032179407"],
        "rootOrgIds": ["52a1d3db169e1fd032179409"],
        "orgIds": ["52a1d3db169e1fd032179410"]
    }               
  }
}

Request Parameters

Name Type Required Description
startTs String Yes The start of the timestamp. Time at which the alert is started.
endTs String   The end of the timestamp. Time at which the alert is finished.
message String   The message of the alert.
priority Integer Yes The priority of the alert.
level String Yes The level of the alert, the possible levels are: "normal", "info", "warning", and "critical".
ackOnDismissal Boolean Yes Shows if the alert can be acknowledged.
ackMessage String   The message that is provided when the alert is acknowledged.
ackButton String   The button information is provided when the alert is acknowledged.
global Boolean Yes True if the alert should be shown to all users.
orgProfileIds Array   An array of organization profile Ids that should be shown this alert.
rootOrgIds Array   An array of root organization Ids that should be shown this alert.
orgIds Array   An array of organization Ids that should be shown this alert.

To create a root level organization you need Super-ops permission. A root level organization requires a profile to be specified.

rootSettings Parameters

Name Type Required Description
forceMfa Boolean   If set to true, use of this org and all child orgs will require the user to have MFA enabled.

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,
    "params": {
      "id": "53c1d3db169e1fd032100002"
    }
  }
}

Response Parameters

Name Type Required Description
id String Yes The unique identifier of the created organization.