Excalidraw+ API

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
/api/v1/workspaces/invites/{inviteId}

Authorization

apiKey
headerAuthorizationBearer <Bearer>

The API will use the Authorization: Bearer <your-key> header for requests.

Path Parameters

inviteId*string

Request Body

application/json
  1. body
email?string|null
role?string
Value in"member""admin"
maxUses?|
restrictedDomains?array<string>|null

Response Body

This response returns the updated data for the workspace invite.

application/json
  1. response

This response returns the updated data for the workspace invite.

id*string
created*string
type*string
Value in"link""email"
status*string
Value in"pending""redeemed""rejected"
email*string|null
role*string
Value in"member""admin"
resolvedAt*string|null
redeemedBy*string|null
maxUses?|
uses?number
restrictedDomains?array<string>|null
Example Request
curl -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