Turn the assistant off (or back on) for this account; account administrators (member.invite)
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
PUT
/api/v1/tenants/{tid}/assistant/tenant-settingsTurn the assistant off (or back on) for this account; account administrators (member.invite). Audited as assistant.tenant_settings
Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
- no other properties
opted_outboolean required
Example
{
"opted_out": true
}Responses
200 Access
Content type: application/json
availableboolean requiredreasonstring optionalAllowed values:"off""opted_out""resellers_off""customers_off""not_in_plan"modelstring requiredmodel_labelstring requiredallow_writesboolean requiredacknowledgedboolean requiredThe signed-in user read the notice shown before first use
notice_versionstring requiredtenant_idstring requiredmonthstring requiredYYYY-MM, UTC
requestsinteger requiredinput_tokensinteger requiredoutput_tokensinteger requiredcache_read_tokensinteger requiredcache_write_tokensinteger requiredcost_micro_usdinteger requiredEstimate from list prices, in millionths of a US dollar
budgetinteger requiredMonthly tokens for this account; 0 is no limit
retention_daysinteger requiredopted_outboolean requiredcan_manageboolean requiredMay turn the assistant off for this account
mcpboolean required
Example
{
"available": true,
"reason": "off",
"model": "string",
"model_label": "string",
"allow_writes": true,
"acknowledged": true,
"notice_version": "string",
"usage": {
"tenant_id": "string",
"month": "string",
"requests": 0,
"input_tokens": 0,
"output_tokens": 0,
"cache_read_tokens": 0,
"cache_write_tokens": 0,
"cost_micro_usd": 0
},
"budget": 0,
"retention_days": 0,
"opted_out": true,
"can_manage": true,
"mcp": true
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required