---
title: "Change a tenant's feature switches"
description: "Trillet OEM API: Switches the AI assistant or call reviews on or off for one tenant."
openapi: /public/openapi/trillet-oem.yaml PATCH /partner/v1/tenants/{tenantId}/features
lastUpdated: "2026-11-25"
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.trillet.ai/llms.txt). Append `.md` to any page URL for its markdown version.

`PATCH https://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.

## Authentication

- `partnerKey` — http bearer (tpk_live_...)

## Header parameters

- `Idempotency-Key` (string) — Optional. Works as on the endpoints that require it.

## Request body

- Content type: `application/json`
  - request body (object)
    - `aiAssistant` (boolean) — Whether the in-app AI assistant is available in this tenant.
    - `callReviews` (boolean | null) — Whether this tenant has call reviews. `null` clears the tenant's own setting, so your account's setting applies again.

## Response 200

The tenant's feature switches after the change.
  - response (object)
    - `object` (string, required)
    - `tenantId` (string, required)
    - `aiAssistant` (object, required)
      - `enabled` (boolean, required) — On unless you switch it off.
    - `callReviews` (object, required)
      - `enabled` (boolean, required)
      - `source` (string, required, one of: tenant, partner, default, unavailable) — 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.

## Response 400

The request is malformed, a field is invalid, or the body has a field the endpoint does not accept. `error.param` names the field when there is one.
  - response (object)
    - `error` (object, required)
      - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
      - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
      - `message` (string, required)
      - `param` (string) — The request field the error is about, when there is one.
      - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.

## Response 401

Authentication failed. A key that is unknown or revoked returns `invalid_api_key`, an
account without Trillet OEM returns `partner_not_enabled`, and a partner key sent in
`x-api-key` returns `partner_key_wrong_header`. No credential, a user session or a user API
key returns `partner_key_required`. Handle a `401` by
status, not only by `error.code`.
  - response
    - (oneOf)
      - value (object)
        - `error` (object, required)
          - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
          - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
          - `message` (string, required)
          - `param` (string) — The request field the error is about, when there is one.
          - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.
      - value (object)
        - `error` (string, required)

## Response 403

`missing_scope`, or `key_restricted` on webhook endpoint routes.
  - response (object)
    - `error` (object, required)
      - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
      - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
      - `message` (string, required)
      - `param` (string) — The request field the error is about, when there is one.
      - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.

## Response 404

Not found, or not yours. For example `tenant_not_found`.
  - response (object)
    - `error` (object, required)
      - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
      - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
      - `message` (string, required)
      - `param` (string) — The request field the error is about, when there is one.
      - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.

## Response 409

Conflict with the current state of the resource.
  - response (object)
    - `error` (object, required)
      - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
      - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
      - `message` (string, required)
      - `param` (string) — The request field the error is about, when there is one.
      - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://docs.trillet.ai/api-specs.zip
