Excalidraw+ API

Update workspace data

Update the current workspace's metadata.

You can update:

  • Workspace name
  • Workspace picture

Use cases:

  • Renaming workspaces
  • Updating branding or workspace avatars
  • Managing workspace settings in admin panels
PATCH
/api/v1/workspaces

Authorization

apiKey
headerAuthorizationBearer <Bearer>

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

Request Body

application/json
  1. body
name?string
picture?|null

Response Body

This response returns the updated data for the workspace.

application/json
  1. response

This response returns the updated data for the workspace.

id*string
users*array<string>
roles*
name*string
created*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
picture*|null
subscriptionStatus*string
Value in"payment_failed""active""canceled""trialing""overdue"
creator*string|null
updater*string|null
apiVersion?string
willCancelAt*|null
blockedUsers?array<string>
type?unknown
Value innull12
preferences?
flags?number
isDeleted?boolean
deletedAt?number
Example Request
curl -X PATCH 'https://api.excalidraw.com/api/v1/workspaces' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "users": [
    "string"
  ],
  "roles": {
    "property1": "member",
    "property2": "member"
  },
  "name": "string",
  "created": "2019-08-24T14:15:22Z",
  "picture": "http://example.com",
  "subscriptionStatus": "payment_failed",
  "creator": "string",
  "updater": "string",
  "apiVersion": "string",
  "willCancelAt": "2019-08-24T14:15:22Z",
  "blockedUsers": [
    "string"
  ],
  "type": null,
  "preferences": {
    "disableAi": true,
    "enableAutoSceneNaming": true,
    "disableEmailEditing": true,
    "disableSceneSharing": true,
    "userApiKeysEnabled": true,
    "disableAiConnectors": true,
    "requireTwoFactor": true
  },
  "flags": 0,
  "isDeleted": true,
  "deletedAt": 0
}

Last updated on