Orders

Update order

Change the order's tag.

PATCHhttps://api.scaledmail.com/v2/orders/:id
Rate limit
Write: 60 calls per minute per token

Path parameters

  • idstringrequired

    The order id (ord_...).

Headers

  • Authorizationstringrequired

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

  • Workspacestringrequired

    The workspace id to act on (from GET /workspaces or Settings › API tokens). Required on every call except the /workspaces calls; without it: 400 workspace_required.

Body

  • tagstring | nulloptional

    The new label, at most 60 characters. Spaces at the ends are removed. null or "" clears it.

Response (200)

  • idstringrequired

    The order (ord_...).

  • tagstringoptional

    The order's tag. Left out when the order has none.

Responses

  • 200OK. The changes are saved.
  • 400Invalid input. tag is over 60 characters (tag_too_long), or another field is not valid (validation_failed).
  • 403Not allowed. The token does not have the orders:write scope (missing_scope) or can't use this workspace (workspace_not_allowed), or the person who made the token is no longer an owner or admin of the workspace (role_not_allowed).
  • 404Not found. No order with this id in this workspace (order_not_found). An order of another workspace looks the same.
  • 429Rate limited. More than 60 write calls in a minute with this token (rate_limited). Wait for the Retry-After seconds.

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