Update a restriction
Updates a restriction. Merge-patch at the top level, but connector_slugs and tools are each REPLACED wholesale when present — send the complete list, since anything omitted is dropped from the rule. Same permissions as create, including restriction:override for user targets.
The connector/tool overlap rule from POST applies to the resulting rule, with one exemption: an overlap the row ALREADY had is left alone, so a row written before the rule existed stays editable through a rename, a mode flip or a target change that echoes both arrays back. Only overlap this patch ADDS is a 400.
Request
- Base URL: https://api.elaichi.ai
- URL: https://api.elaichi.ai/restriction/{id}
- Auth: HTTP bearer
Path parameters
Restriction id (rstr_…).
Headers
Target organization (org_…). Required for cookie/session auth on org-scoped routes; optional for API tokens, which carry their organization, and rejected when it names a different one.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.