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 Type | Supported Relations |
---|---|
Connections | viewer , editor , resolver |
Dashboards | viewer , editor |
Notebooks | viewer , editor |
Security Rules | viewer , editor |
Service Level Objectives | viewer , editor |
Request Body
{"data"=>{"type"=>"restriction_policy", "id"=>"<string>", "attributes"=>{"bindings"=>[{"relation"=>"<string>", "principals"=>["<string>", "<string>"]}, {"relation"=>"<string>", "principals"=>["<string>", "<string>"]}]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"type":"restriction_policy","id":"\u003cstring\u003e","attributes":{"bindings":[{"relation":"\u003cstring\u003e","principals":["\u003cstring\u003e","\u003cstring\u003e"]},{"relation":"\u003cstring\u003e","principals":["\u003cstring\u003e","\u003cstring\u003e"]}]}}}