API ReferenceTenantsId
Update a tenant
PATCH
Rename a tenant, replace its request defaults, or suspend and reactivate it. While a tenant is suspended, calls made with its keys or naming it in X-Tenant-Id are refused with 403 TENANT_SUSPENDED. config replaces the stored defaults as a whole; send an empty object to clear them. Partner accounts only: call it with your partner account's account-wide key, which needs the admin scope, and without X-Tenant-Id.
header
AuthorizationBearer <API key>API key in the Authorization header: Authorization: Bearer ace_live_.... Use an ace_test_... key for the free, rate-capped sandbox.
id*stringFormat
uuidapplication/json- body
name?stringLength
length <= 200config?Defaults for the tenant's enrichment calls. A call that leaves a field out uses the default; a field the call sends always wins. Brand voice merges field by field.
status?stringValue in
"active""suspended"The updated tenant
application/json- response
data?curl -X PATCH 'https://example.com/api/v1/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string", "status": "active", "config": { "brandVoice": { "tone": "string", "contentStyle": "string", "targetAudience": "string", "languageComplexity": "string", "language": "string" }, "targetLanguage": "en-GB", "creativityLevel": 1, "contentTypes": [ "product-description", "meta-tags" ], "reviewQueue": false }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}