Trillet AI logo

Change a tenant's feature switches

Trillet OEM API: Switches the AI assistant or call reviews on or off for one tenant.

PATCHhttps://api.trillet.ai/partner/v1/tenants/{tenantId}/features

Switches the AI assistant or call reviews on or off for one tenant. Send either field or both. Needs tenants:write.

callReviews: true returns 409 feature_unavailable when call reviews are not enabled on your own account.

Loading code example
Loading code example

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tenantIdstringrequired

The tenant ID.

Pattern: ^[a-fA-F0-9]{24}$

Header Parameters

Idempotency-Keystring

Optional. Works as on the endpoints that require it.

Length: >= 1, <= 255

Body

aiAssistantboolean

Whether the in-app AI assistant is available in this tenant.

callReviewsboolean | null

Whether this tenant has call reviews. null clears the tenant's own setting, so your account's setting applies again.

Response

application/json

The tenant's feature switches after the change.

objectstringrequired
tenantIdstringrequired
Pattern: ^[a-fA-F0-9]{24}$
aiAssistantobjectrequired
aiAssistant.enabledbooleanrequired

On unless you switch it off.

callReviewsobjectrequired
callReviews.enabledbooleanrequired
callReviews.source"tenant" | "partner" | "default" | "unavailable"required

Where the value comes from: set on this tenant, inherited from your account, the default, or unavailable when call reviews are not offered on this deployment.

Allowed values: "tenant" | "partner" | "default" | "unavailable"

Last updated on