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
apiKeyheader
AuthorizationBearer <Bearer>The API will use the Authorization: Bearer <your-key> header for requests.
application/json- body
name?stringpicture?|nullThis response returns the updated data for the workspace.
application/json- response
This response returns the updated data for the workspace.
id*stringusers*array<string>roles*name*stringcreated*stringMatch
^(?:(?:\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))$Format
date-timepicture*|nullsubscriptionStatus*stringValue in
"payment_failed""active""canceled""trialing""overdue"creator*string|nullupdater*string|nullapiVersion?stringwillCancelAt*|nullblockedUsers?array<string>type?unknownValue in
null12preferences?flags?numberisDeleted?booleandeletedAt?numbercurl -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