Skip to main content
PUT
Replace the app-availability policy
Sets the whole policy at once. In restricted mode, each rule names people and groups and the providers they may connect. Existing connections are not removed. open lets every workspace connect every app. restricted allows only what the rules grant — each rule names people and groups and the providers they may connect. Resetting to open with no rules is never gated. On Cloud, restriction needs the Scale plan and group-targeted rules the Enterprise plan.
Availability: Cloud · Enterprise (self-hosted). Not available on the Community edition: a self-hosted deployment needs ENTERPRISE_ENABLED=true, otherwise the endpoint answers 403 with error.type: "enterprise_license_required".

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Body

application/json
mode
enum<string>
required
Available options:
open,
restricted
rules
object[]
required
Maximum array length: 1000

Response

The policy

mode
enum<string>
Available options:
open,
restricted
rules
object[]