Ir al contenido

Crear tenant

POST
/partner/tenants
curl --request POST \
--url https://api.overtaker.online/api/v1/partner/tenants \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "email": "hello@example.com", "bot_name": "example", "plan_id": "starter", "subdomain": "example" }'

Crea un nuevo tenant (cliente) bajo este partner. El tenant queda activo de inmediato.

Media type application/json
PartnerTenantCreate
object
name
required
Name
string
email
required
Email
string format: email
bot_name
Any of:
string
plan_id
Any of:
string
subdomain
Any of:
string

Successful Response

Media type application/json
PartnerTenantResponse
object
tenant_id
required
Tenant Id
string
name
required
Name
string
subdomain
required
Subdomain
string
status
required
Status
string
plan_id
required
Plan Id
string
admin_email
Any of:
string
admin_temp_password
Any of:
string
Example generated
{
"tenant_id": "example",
"name": "example",
"subdomain": "example",
"status": "example",
"plan_id": "example",
"admin_email": "example",
"admin_temp_password": "example"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}