curl -X PATCH 'https://api.example.com/tenants/tenant_acme' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"planKey": "enterprise",
"maxUsers": 200,
"maxWorkspaces": 50
}'
{
"id": "tenant_acme",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_acme",
"slug": "acme-corp",
"planKey": "enterprise",
"status": "active",
"maxUsers": 200,
"maxWorkspaces": 50,
"updatedAt": "2024-01-16T10:30:00Z"
}
Update a tenant
curl -X PATCH 'https://api.example.com/tenants/tenant_acme' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"planKey": "enterprise",
"maxUsers": 200,
"maxWorkspaces": 50
}'
{
"id": "tenant_acme",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_acme",
"slug": "acme-corp",
"planKey": "enterprise",
"status": "active",
"maxUsers": 200,
"maxWorkspaces": 50,
"updatedAt": "2024-01-16T10:30:00Z"
}
active, suspended, pendingcurl -X PATCH 'https://api.example.com/tenants/tenant_acme' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"planKey": "enterprise",
"maxUsers": 200,
"maxWorkspaces": 50
}'
{
"id": "tenant_acme",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_acme",
"slug": "acme-corp",
"planKey": "enterprise",
"status": "active",
"maxUsers": 200,
"maxWorkspaces": 50,
"updatedAt": "2024-01-16T10:30:00Z"
}
Was this page helpful?