Menu
Get Permission Resource
Get a permission resource
GET
/projects/{projectId}/permissionResources/{resourceId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Permission Resource action (under Roles).
- Fill in the fields below, then reference the result from later steps as
{{getPermissionResource.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getPermissionResource.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?