Dozor
Invites

Edit a pending invite

OWNER-only. Discriminated body — `{ action: 'change-role', role }` updates the role, `{ action: 'extend' }` resets the TTL and re-attributes the inviter to the acting user.

PATCH/api/organizations/{orgId}/invites/{inviteId}

OWNER-only. Discriminated body — { action: 'change-role', role } updates the role, { action: 'extend' } resets the TTL and re-attributes the inviter to the acting user.

Path Parameters

orgId*string

Organisation id (cuid)

inviteId*string

Invite id (cuid)

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

action*string

Response Body

curl -X PATCH "https://loading/api/organizations/string/invites/string" \  -H "Content-Type: application/json" \  -d '{    "action": "change-role",    "role": "VIEWER"  }'
Empty
Empty
Empty
Empty
Empty