Change requests

Cancel change request

Cancel a change request that has not started yet. No body.

POSThttps://api.scaledmail.com/v2/change-requests/:id/cancel
Rate limit
Write: 60 calls per minute per token

Only while the request is pending and our team has not started on it; otherwise 409 change_request_not_pending. A redirect or masking change can start within a minute, so it may not be cancellable for long.

Path parameters

  • idstringrequired

    The change request id (chg_...).

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.

Response (200)

  • idstringrequired

    The change request id: chg_ and 32 hex characters.

  • changesenum[]required

    What the request changes, one or more of: replace_domain = another domain takes this one's place on its order; redirect = set, change or remove where visitors are sent; masking = change the site a masked domain shows; sender_name = new sender names (and if you like new addresses) on its mailboxes.

  • status"cancelled"required

    The request was cancelled.

  • domainstringrequired

    The domain the request is for (its name when the request was made).

  • replace_domainobjectoptional

    Only when changes has replace_domain.

    Show child fields
    • new_domainstringrequired

      The domain that takes over.

    • sourceenumrequired

      purchased = bought from us, own = registered by you elsewhere.

      One of: purchased own

  • redirectobjectoptional

    Only when changes has redirect.

    Show child fields
    • urlstringoptional

      The new address, saved without https://, without a trailing / and in lower case. Left out = the redirect is removed.

  • maskingobjectoptional

    Only when changes has masking.

    Show child fields
    • masking_targetstringrequired

      The domain whose site the masked domain will show.

  • sender_nameobjectoptional

    Only when changes has sender_name.

    Show child fields
    • mailboxesobject[]required

      Each mailbox that changes, by address.

      Show child fields
      • emailstringrequired

        Its address when the request was made.

      • first_namestringrequired

        New first name.

      • last_namestringrequired

        New last name.

      • new_emailstringoptional

        New address. Only when the address changes.

  • created_atstringrequired

    When the request was made, as a date: YYYY-MM-DD (UTC).

  • completed_atstringrequired

    When it was cancelled, as a date: YYYY-MM-DD (UTC).

Responses

  • 200OK. The request is cancelled.
  • 403Not allowed. The token does not have the change_requests:write scope (missing_scope), or Workspace names a workspace the token does not cover (workspace_not_allowed). Or the token's creator may not cancel requests in this workspace (role_not_allowed).
  • 404Not found. No such change request in this workspace. A request of another workspace looks the same.
  • 409Not pending. The request is in_progress, completed, cancelled or failed, or it is pending but our team has already taken it over.
  • 429Rate limited. More than 60 write calls in a minute with this token. 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.