Create a restriction
Creates a restriction. Requires restriction:manage and the restrictions plan feature; a user target additionally requires restriction:override. A member is bound by their role's rules and their own at once, so a member's allow or block rule only ever narrows. mode: "except" is 400: the one way to loosen a role rule for one member is an approved access grant (POST /access-request/{id}/resolve), which records who asked, who approved it and, optionally, when it expires. A rule aimed at yourself is always 403, even when nothing restricts you. Changes take effect within about a minute.
A connector named in connector_slugs must not also appear as a tools[].connector_slug: 400, naming the connector. Restricting a whole connector already settles every tool on it, so the tool entries change nothing; on an allow rule they are worse than nothing, because the rule then grants the whole connector rather than the tools that were picked. Read summary back to see what the rule you just wrote does.
Request
- Base URL: https://api.elaichi.ai
- URL: https://api.elaichi.ai/restriction
- Auth: HTTP bearer
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
Created
Changes
No recorded changes to this operation across all 1 revision of this API.