Menu
Create Organization Grant
Create an organization grant
POST
/organizations/{organizationId}/grantsUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Create Organization Grant action (under Roles).
- Fill in the fields below, then reference the result from later steps as
{{createOrganizationGrant.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"roleName": "translator",
"permissionName": "read",
"permissionResourceId": "res-k2d8fj3a",
"permissionResourceName": "articles",
"params": {}
}
Response
Returns 200 with an object. Read it in later steps with {{createOrganizationGrant.response.data.<field>}}.
{
"roleName": "translator",
"permissionName": "read",
"permissionResourceType": "sanity.document.filter",
"permissionResourceId": "res-k2d8fj3a",
"params": {},
"tagId": "string",
"datasetId": "string"
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?