Update workspace invite
Update the metadata of a specific workspace invite by its ID.
You can update:
- Email address (for email invites)
- Role assigned to the invitee
- Maximum uses or domain restrictions
Use cases:
- Correcting invite details
- Changing invite permissions
- Managing invite limits
PATCH
apiKeyheader
AuthorizationBearer <Bearer>The API will use the Authorization: Bearer <your-key> header for requests.
inviteId*stringapplication/json- body
email?string|nullrole?stringValue in
"member""admin"maxUses?|restrictedDomains?array<string>|nullThis response returns the updated data for the workspace invite.
application/json- response
This response returns the updated data for the workspace invite.
id*stringcreated*stringtype*stringValue in
"link""email"status*stringValue in
"pending""redeemed""rejected"email*string|nullrole*stringValue in
"member""admin"resolvedAt*string|nullredeemedBy*string|nullmaxUses?|uses?numberrestrictedDomains?array<string>|nullcurl -X PATCH 'https://api.excalidraw.com/api/v1/workspaces/invites/string' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"id": "string",
"created": "string",
"type": "link",
"status": "pending",
"email": "string",
"role": "member",
"resolvedAt": "string",
"redeemedBy": "string",
"maxUses": 1,
"uses": 0,
"restrictedDomains": [
"string"
]
}Last updated on