Menu
Update Permissions
Update Multiple Permission Rules
PATCH
/permissionsUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Update Permissions action (under Permissions).
- Fill in the fields below, then reference the result from later steps as
{{updatePermissions.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"id": 1,
"collection": "customers",
"action": "create",
"permissions": {},
"validation": {},
"presets": {},
"fields": [
"string"
],
"policy": "00000000-0000-0000-0000-000000000000"
},
"keys": [
"string"
]
}
Response
Returns 200 with an object. Read it in later steps with {{updatePermissions.response.data.<field>}}.
{
"data": [
{
"id": 1,
"collection": "customers",
"action": "create",
"permissions": {},
"validation": {},
"presets": {},
"fields": [
"string"
],
"policy": "00000000-0000-0000-0000-000000000000"
}
],
"meta": {
"total_count": 0,
"filter_count": 0
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?