POST /api/tenants

Create a tenant by deploying a build.

Remarks

The method returns HTTP 202 and a reference to the job in the LOCATION header.

Request

Parameter Description Additional information
options Tenant create options. Define this parameter in the body.

Example

{
  "Name": "sample string 1",
  "Comment": "sample string 2",
  "BuildName": "sample string 3",
  "Backup": "sample string 4",
  "CustomSettings": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4",
    "sample string 5": "sample string 6"
  },
  "ThemeColor": "sample string 5",
  "ThemeName": "sample string 6",
  "ThemeLogoUrl": "sample string 7",
  "CallbackUrl": "sample string 8"
}

Response

Returns a job with information about the progress of the create operation. Further calls to the jobs API can be made to get updated information about the status of the operation.

Example

{
  "Id": "8164266f-a924-41eb-879d-2e859585f190",
  "Progress": 33,
  "Name": "Create Site",
  "Status": "Started",
  "Log": "Creating site...",
  "CallbackUrl": "https://mycallbackhandler.com/handle/site",
  "Jobs": 9,
  "CompletedJobs": 3,
  "StartedAt": "2021-12-21T11:27:15.1611007Z",
  "EndedAt": null,
  "Duration": "19:36:52.4350617",
  "Timestamp": "20211221112715161",
  "Tenant": null,
  "CreatedBy": {
    "Id": -2,
    "Email": "Api"
  },
  "HasEnded": false
}