Create tenant
Create a new tenant.
Method
POST /tenant/create
Parameters
This method takes no parameters.
Request Body
A JSON object with the following properties:
Name | Type | Description |
---|---|---|
id | String | The id of the tenant. |
name | String | The name of the tenant. |
Result
This method returns no content.
Response Codes
Code | Media type | Description |
---|---|---|
204 | Request successful. | |
403 | application/json | Identity service is read-only. |
500 | application/json | The tenant could not be created due to an internal server error. See the Introduction for the error response format. |
Example
Request
POST /tenant/create
Request Body:
{
"id":"tenantOne",
"name":"Tenant One"
}
Response
Status 204. No content.