Make a tenant
POST
/v1/admin/tenants
const url = 'https://example.com/v1/admin/tenants';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/admin/tenants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "example", "name": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
id
string
name
string
Example generated
{ "id": "example", "name": "example"}Responses
Section titled “Responses”Made; the answer describes it.
Media typeapplication/json
object
id
required
string
name
required
string
tier
required
retentionDays
required
createdAt
required
string
suspendedAt
required
null | string
deletedAt
required
null | string
Example generated
{ "id": "example", "name": "example", "tier": "example", "retentionDays": "example", "createdAt": "example", "suspendedAt": "example", "deletedAt": "example"}The request is malformed (bad-request).
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}In conflict with what is there.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}