Menu
Update Permission Resource
Update a permission resource
PUT
/projects/{projectId}/permissionResources/{resourceId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Update Permission Resource action (under Roles).
- Fill in the fields below, then reference the result from later steps as
{{updatePermissionResource.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"title": "string",
"description": "string",
"config": {}
}
Response
Returns 200 with an object. Read it in later steps with {{updatePermissionResource.response.data.<field>}}.
{
"id": "res-k2d8fj3a",
"name": "articles",
"title": "Articles",
"description": "Documents of type article",
"config": {
"filter": "_type == \"article\""
},
"isCustom": true,
"permissionResourceType": "sanity.document.filter"
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?