Cancel a tenant workspace's deletion
POST/v1/workspaces/{externalId}/cancel-deletion
Requires an API key with the workspaces:manage scope. About keys and scopes
Partner keys only.
Safe to retry: a repeat returns the current state, or 409 once it has moved on from it. About idempotency
Cancels a tenant workspace's pending deletion, keeping the workspace. Partner keys only. New sends work again; messages skipped while it was being deleted are not sent.
Path parameters
externalIdstringrequiredYour own id for the workspace, as given at creation.
pattern
^[A-Za-z0-9._:-]{1,128}$
Header parameters
Idempotency-KeystringoptionalMakes a retry safe: a repeat with the same key and body within 24 hours gets the first response again, with
Idempotency-Replay: true. The same key with another request is 409IDEMPOTENCY_KEY_REUSED; while the first is still running, 409IDEMPOTENCY_KEY_IN_USE; after anunsafefirst request failed or never returned, 409IDEMPOTENCY_KEY_OUTCOME_UNKNOWN. Use a new key, such as a UUID, for each new request.8–255 characters
Returns
Returns 200 OK with a Workspace in data. It can also return 409 Conflict; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.
200 OKThe workspace, kept.409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.
idstringrequireduuid
externalIdstringrequiredYour own id for the tenant.
namestringrequiredcountrystringrequiredTwo-letter ISO 3166-1 country code.
2 characters
timezonestringrequiredIANA timezone; decides local-time sends and report days.
currencystringrequiredISO 4217; the currency its revenue totals convert into.
3 characters
statusstringrequiredsuspendedrefuses every send in the workspace until it is resumed;deletingrefuses them too, and the workspace is purged unless the deletion is cancelled.one of
active,suspended,deletingsuspendedAtstring | nullrequiredWhen it was suspended; null if not.
date-time
deletionRequestedAtstring | nullrequiredWhen deletion was asked for; null if not.
date-time
deletesAtstring | nullrequiredWhen the workspace and everything in it is deleted for good, unless the deletion is cancelled before; null if no deletion is pending.
date-time
websitestring | nullrequiredThe business's website.
uri · up to 500 characters
mailKindstring | nullrequiredWhat the workspace sends.
one of
marketing,transactional,bothcontactOptInstring | nullrequiredHow its contacts agreed to hear from it: a signup form, checkout, an app.
1–1,000 characters
createdAtstringrequireddate-time
Headers on 200 OK
Idempotency-Replaystringoptionaltruewhen this is the stored response to an earlier request with the same key.one of
true