All notebooks
Create AccessPolicy
Create AccessPolicy for users with a specific role
2 cells · updated Nov 6, 2023
This is a read-only view. Responses shown were saved when the notebook was published —
open it in your own Aidbox to run the cells against live data.
REST
Send
Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /AccessPolicy
content-type: text/yaml
accept: text/yaml
id: devbox-policy-developer
engine: matcho
matcho:
user:
data: {roles: {$contains: Developer}}
request-method: {$enum: ['get','post','put','delete']}
Response:
Body
Status:
201
engine: matcho
matcho:
user:
data:
roles: {$contains: Developer}
request-method:
$enum: [get, post, put, delete]
id: devbox-policy-developer
resourceType: AccessPolicy
meta: {lastUpdated: '2023-11-06T18:57:36.379934Z', createdAt: '2023-11-06T18:57:36.379934Z', versionId: '9'}