SnozeDevelopers
API referenceItem access

Change the access level on an item grant

Sets a new access level on one existing grant for this item and records an access-updated event. Requires `full` on the item, with the `resources:write` scope for API keys. A grant id that is malformed or does not belong to this item is not found. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

PATCH
/v1/workspaces/{workspaceId}/items/{itemId}/access/{grantId}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
itemId*string
grantId*string

Request Body

application/json
  1. body
accessLevel*string
Value in"view""comment""run""edit""full"

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://api.snoze.dev/v1/workspaces/string/items/string/access/string' \  -H 'Content-Type: application/json' \  -d '{  "accessLevel": "view"}'
Example Response
{  "data": {    "id": "string"  }}