SnozeDevelopers
API referenceWorkspaces

Change a pending invite's role or expiry

Updates the role and/or expiry of an invite that is still pending. Requires `members:invite`, and only owners may move an invite to or from the owner role. An unknown invite is not found, an invite that has already been accepted or revoked conflicts, and raising a viewer invite to an editor role must fit within the plan's editor seats.

PATCH
/v1/workspaces/{workspaceId}/invites/{inviteId}

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
inviteId*string

Request Body

application/json
  1. body
role?|null
expiresAt?string|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://api.snoze.dev/v1/workspaces/string/invites/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "email": "string",    "role": "owner",    "status": "pending",    "invitedByUserId": "string",    "acceptedByUserId": "string",    "expiresAt": "string",    "createdAt": "string",    "updatedAt": "string"  }}