Create New Tenant
POST
/v1/platform/tenants
const url = 'http://localhost:8080/v1/platform/tenants';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"id":"example","name":"example","initial_admin_email":"hello@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/platform/tenants \ --header 'Content-Type: application/json' \ --data '{ "id": "example", "name": "example", "initial_admin_email": "hello@example.com" }'Request Body required
Section titled “Request Body required ” Media type application/json
CreateTenantPayload
object
id
required
Id
string
name
required
Name
string
initial_admin_email
required
Initial Admin Email
string format: email
Example generated
{ "id": "example", "name": "example", "initial_admin_email": "hello@example.com"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Create New Tenant V1 Platform Tenants Post
object
key
additional properties
any
Example generated
{}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}