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"=>"dashboard:abc-def-ghi"}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"type":"restriction_policy","id":"dashboard:abc-def-ghi","attributes":{}}}