Update a tenant workspace
PATCH/v1/workspaces/{externalId}
Requires an API key with the workspaces:manage scope. About keys and scopes
Partner keys only.
Safe to retry: a repeat sets the same values again. About idempotency
Changes a tenant workspace's name, country or timezone; a field left out is unchanged. Partner keys only. The timezone decides local-time sends and report days.
Path parameters
externalIdstringrequiredYour own id for the workspace, as given at creation.
pattern
^[A-Za-z0-9._:-]{1,128}$
Request body
namestringoptional1–200 characters
countrystringoptionalTwo-letter ISO 3166-1 country code.
timezonestringoptionalIANA timezone, such as
Europe/Berlin.1–64 characters
currencystringoptionalISO 4217; changing it reconverts every revenue total.
pattern
^[A-Z]{3}$websitestring | nulloptionalThe business's website.
uri · up to 500 characters
mailKindstring | nulloptionalWhat the workspace sends.
one of
marketing,transactional,bothcontactOptInstring | nulloptionalHow its contacts agreed to hear from it: a signup form, checkout, an app.
1–1,000 characters
Returns
Returns 200 OK with a Workspace in data. It can also return 409 Conflict, 413 Payload Too Large or 415 Unsupported Media Type; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.
200 OKThe updated workspace.409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.413 Payload Too LargeThe body is larger than this operation accepts (PAYLOAD_TOO_LARGE).415 Unsupported Media TypeThe body is not JSON, or not the upload the operation takes (UNSUPPORTED_MEDIA_TYPE).
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