Update a restriction policy

POST {{baseUrl}}/api/v2/restriction_policy/:resource_id

Updates the restriction policy associated with a resource.

Supported resources

Restriction policies can be applied to the following resources: - Connections: connection - Dashboards: dashboard - Notebooks: notebook - Security Rules: security-rule - Service Level Objectives: slo

Supported relations for resources

Resource TypeSupported Relations
Connectionsviewer, editor, resolver
Dashboardsviewer, editor
Notebooksviewer, editor
Security Rulesviewer, editor
Service Level Objectivesviewer, editor

Request Body

{"data"=>{"type"=>"restriction_policy", "id"=>"<string>", "attributes"=>{"bindings"=>[{"relation"=>"<string>", "principals"=>["<string>", "<string>"]}, {"relation"=>"<string>", "principals"=>["<string>", "<string>"]}]}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;type&quot;:&quot;restriction_policy&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;attributes&quot;:{&quot;bindings&quot;:[{&quot;relation&quot;:&quot;\u003cstring\u003e&quot;,&quot;principals&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},{&quot;relation&quot;:&quot;\u003cstring\u003e&quot;,&quot;principals&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}]}}}