API - Tenant
Creating a new tenant
Endpoint | /api/v1/tenants |
|---|---|
Method | POST |
Parameters
name | Mandatory | max length 255 |
|---|---|---|
domain | Mandatory | max length 255 |
timezone | Mandatory | |
language | Mandatory | |
Mandatory | ||
county | Mandatory | |
feature_plan_id | Mandatory | NEW - set a predefined feature plan id |
configs | Optional | A key-value dictionary with configs to be set on tenant |
Response examples.
201 |
|
|---|---|
400 |
|
500 |
|
Change feature plan
Endpoint | /api/v1/tenants/<tenant_id>/feature_plan |
|---|---|
Method | POST |
Parameters
feature_plan_id | Mandatory |
|---|
Example
curl -X POST \
https://<EVOLUX_DOMAIN>/api/v1/tenants/100/feature_plan \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-H 'token: <EVOLUX_TOKEN>' \
-d '{"feature_plan_id": 5}'Response example
200 | { |
|---|