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"=>"dashboard:abc-def-ghi"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"data":{"type":"restriction_policy","id":"dashboard:abc-def-ghi","attributes":{}}}