Workspaces

Update workspace

Rename a workspace.

PATCHhttps://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

  • idstringrequired

    The workspace id (org_...).

Headers

  • Authorizationstringrequired

    Bearer <your API token>. Tokens start with sm_live_.

Body

  • namestringoptional1 to 40 characters

    The 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)

  • idstringrequired

    The workspace id (org_...).

  • namestringrequired

    The workspace name.

  • parent_idstringoptional

    The 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. name is empty, longer than 40 characters or has other characters.
  • 403Not allowed. The token's creator is only a member of this workspace (not_allowed), or the token lacks 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-After seconds.

Like every call, it can also answer 401 (bad key). See Errors.