Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/platform/update-tenantPlatform Console

Update tenant status, plan, or custom domain

Allows verified Platform Founders to suspend or reactivate a workspace, update subscription plan tier, or bind a custom white-label hostname.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
tenantIdstring (uuid)required

Target tenant workspace UUID.

statusenum('active' | 'suspended')optional

Operational tenant status (active or suspended).

planenum('basic' | 'starter' | 'pro' | 'enterprise')optional

Workspace subscription plan tier.

customDomainstring | nulloptional

Optional custom white-label hostname or null to clear.

Responses

Select a status code to inspect schema.

Tenant updatedapplication/json
successenum('true')

Indicates the API operation succeeded.

messagestring

Human-readable response status message.

dataobject

data field.

data.idstring (uuid)

id field.

data.namestring

name field.

data.subdomainstring | null

subdomain field.

data.customDomainstring | null

customDomain field.

data.planstring

plan field.

data.statusstring

status field.

POST/api/platform/update-tenant
curl -X POST "https://api.invoger.com/api/platform/update-tenant" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "tenantId": "11111111-1111-4111-8111-111111111111", "status": "active", "plan": "pro", "customDomain": "pos.tokobuah.com" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Tenant workspace updated",
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "subdomain": "string",
    "customDomain": "string",
    "plan": "string",
    "status": "string"
  }
}