Workspaces
Update workspace
Rename a workspace.
PATCH
https://api.scaledmail.com/v2/workspaces/:id- Rate limit
- Write: 60 calls per minute per token
No Workspace header is needed: the id in the path says which one.
Path parameters
idstringrequiredThe workspace id (
org_).. . .
Headers
AuthorizationstringrequiredBearer <your API token>. Tokens start withsm_.live_
Body
namestringoptional1 to 40 charactersThe new name, 1 to 40 characters: letters, numbers, spaces and
.. Spaces at the start and end are cut. Must differ from the owner's other workspaces (case is ignored)., - _ & ' ( )
Response (200)
idstringrequiredThe workspace id (
org_).. . . namestringrequiredThe workspace name.
parent_idstringoptionalThe main workspace of a sub-workspace (
org_). Only on a sub-workspace.. . .
Responses
- 200OK. The workspace was renamed. The reply is the whole workspace.
- 400Invalid name.
nameis empty, longer than 40 characters or has other characters. - 403Not allowed. The token's creator is only a member of this workspace (
not_), or the token lacksallowed workspaces:write(missing_).scope - 404Not found. No workspace with this id, or your token does not cover it.
- 409Name taken. The owner already has a workspace with this name.
- 429Too many. More than 60 write calls a minute with this token. Wait for
Retry-Afterseconds.
Like every call, it can also answer 401 (bad key). See Errors.
