Managing tenants
Operations with tenants are located under the /tenants
endpoint in the API.
The API represents a tenant as a JSON object.
JSON object structure of a tenant
Name |
Value type |
Description |
---|---|---|
|
UUID string |
The universally unique identifier (UUID) of the tenant. This UUID is used for accessing the tenant via the API. |
|
|
Specifies if higher-level administrators can manage the tenant. |
|
number |
API v1 ID of the tenant’s brand. |
|
UUID string |
The UUID of the tenant’s brand. If the tenant has branding active – it will contain a brand UUID generated for this tenant, otherwise it will contain UUID of the brand of higher-level tenant. |
|
contact object |
The legal contact information of the organization. |
|
string |
An internal value. |
|
string |
An internal value. |
|
UUID string |
An internal value. |
|
|
Specifies if the tenant is enabled or disabled. |
|
|
Specifies if the tenant has child tenants. |
|
string |
Any value that must be no longer than 256 characters. The platform does not use this value. A third-party application can use the value for its own purposes. |
|
string |
The tenant type. The value can be |
|
string |
The default language of notifications, reports, and the software that is used within the tenant. For the list of supported values, see below. |
|
string |
The tenant name. |
|
UUID string |
Set to user account UUID if it is a personal tenant. Otherwise set to |
|
UUID string |
The UUID of a tenant where this tenant is created. |
|
object |
An internal value. |
|
number |
The revision number of the tenant. Each update of the tenant increases this number. |
Tenant contact object structure
Name |
Value type |
Description |
---|---|---|
|
string |
An email address that will be used for account activation and service notifications. |
|
string |
Address line 1. |
|
string |
Address line 2. |
|
string |
Organization’s country. |
|
string |
Organization’s state. |
|
string |
Organization’s zip code. |
|
string |
Organization’s city. |
|
string |
Organization’s phone number. |
|
string |
The first name of the organization’s representative. |
|
string |
The last name of the organization’s representative. |
Supported language values
bg
- Bulgariancs
- Czechda
- Danishde
- Germanen
,en-US
- Englishes
- Spanishes-419
- Spanish (Latin America)fi
- Finnishfr
- Frenchid
- Indonesianit
- Italianhu
- Hungarianja
- Japanko
- Koreanms
- Malaynb
- Norwegiannl
- Dutchpl
- Polishpt
- Portuguesept-BR
- Portuguese (Brazil)ru
- Russiansr
- Serbiansv
- Swedishtr
- Turkishzh
- Chinesezh-TW
- Chinese (Traditional)
Sample JSON object of a tenant
{
"ancestral_access": true,
"brand_id": 3579,
"brand_uuid": "14dc11ca-2b16-43bb-8ba4-2a3545c214a0",
"contact": {
"address1": "366 5th Ave",
"address2": null,
"city": null,
"country": null,
"email": "foo.bar@example.com",
"firstname": "",
"lastname": "",
"phone": "1-541-754-3010",
"state": null,
"zipcode": null
},
"customer_id": null,
"customer_type": "default",
"default_idp_id": "11111111-1111-1111-1111-111111111111",
"enabled": true,
"has_children": false,
"id": "0fcd4a69-8a40-4de8-b711-d9c83dc000f7",
"internal_tag": "some.unique.tag.value",
"kind": "customer",
"language": "en",
"name": "Foobar",
"owner_id": null,
"parent_id": "ede9f834-70b3-476c-83d9-736f9f8c7dae",
"update_lock": {
"enabled": false,
"owner_id": null
},
"version": 1
}
What you can do with tenants
Operation |
Methods and endpoints used |
---|---|
POST /tenants |
|
GET /tenants/{tenant_id} |
|
GET /tenants |
|
GET /tenants/{tenant_id}/children |
|
GET /tenants/{tenant_id}/pricing |
|
GET /tenants/{tenant_id}/pricing PUT /tenants/{tenant_id}/pricing |
|
GET /tenants/{tenant_id} PUT /tenants/{tenant_id} |
|
GET /tenants/{tenant_id} PUT /tenants/{tenant_id} |
|
GET /tenants/{tenant_id} PUT /tenants/{tenant_id} |
|
GET /tenants/{tenant_id} PUT /tenants/{tenant_id} |
|
GET /tenants/{tenant_id} PUT /tenants/{tenant_id} DELETE /tenants/{tenant_id} |