AdminUpdate tenant enforcement settings

Update tenant enforcement settings

Update per-tenant enforcement flags — superadmin only.

curl -X PATCH "https://api.autopil.ai/v1/admin/tenants/example_string/settings" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "require_agent_id": true
}'
{}
PATCH
/v1/admin/tenants/{tenant_id}/settings
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.
Content-Typestring
Required

The media type of the request body

Options: application/json
require_agent_idboolean

When true, every evaluate call for this tenant must supply an agent_id. Anonymous callers are denied with policy_name="agent_id_required". Takes effect immediately.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

Path Parameters

Body

application/json
require_agent_idboolean

When true, every evaluate call for this tenant must supply an agent_id. Anonymous callers are denied with policy_name="agent_id_required". Takes effect immediately.

Responses

Settings updated.