Change requests
Cancel change request
Cancel a change request that has not started yet. No body.
https://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_. A redirect or masking change can start within a minute, so it may not be cancellable for long.
Path parameters
idstringrequiredThe change request id (
chg_).. . .
Headers
AuthorizationstringrequiredBearer <your API token>. Tokens start withsm_.live_ WorkspacestringrequiredThe workspace id to act on (from
GET /workspacesor Settings › API tokens). Required on every call except the/workspacescalls; without it:400workspace_.required
Response (200)
idstringrequiredThe change request id:
chg_and 32 hex characters.changesenum[]requiredWhat the request changes, one or more of:
replace_= another domain takes this one's place on its order;domain redirect= set, change or remove where visitors are sent;masking= change the site a masked domain shows;sender_= new sender names (and if you like new addresses) on its mailboxes.name status"cancelled"requiredThe request was cancelled.
domainstringrequiredThe domain the request is for (its name when the request was made).
replace_domainobjectoptionalOnly when
changeshasreplace_.domain ShowHide child fields
new_domainstringrequiredThe domain that takes over.
sourceenumrequiredpurchased= bought from us,own= registered by you elsewhere.One of:
purchasedown
redirectobjectoptionalOnly when
changeshasredirect.ShowHide child fields
urlstringoptionalThe new address, saved without
https://, without a trailing/and in lower case. Left out = the redirect is removed.
maskingobjectoptionalOnly when
changeshasmasking.ShowHide child fields
masking_targetstringrequiredThe domain whose site the masked domain will show.
sender_nameobjectoptionalOnly when
changeshassender_.name ShowHide child fields
mailboxesobject[]requiredEach mailbox that changes, by address.
ShowHide child fields
emailstringrequiredIts address when the request was made.
first_namestringrequiredNew first name.
last_namestringrequiredNew last name.
new_emailstringoptionalNew address. Only when the address changes.
created_atstringrequiredWhen the request was made, as a date:
YYYY-MM-DD(UTC).completed_atstringrequiredWhen 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_scope (requests:write missing_), orscope Workspacenames a workspace the token does not cover (workspace_). Or the token's creator may not cancel requests in this workspace (not_ allowed 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,cancelledorfailed, or it ispendingbut our team has already taken it over. - 429Rate limited. More than 60 write calls in a minute with this token. Wait for the
Retry-Afterseconds.
Like every call, it can also answer 401 (bad key), 400 workspace_, 403 workspace_. See Errors.
