Update workspace
Renames the workspace, sets where invoices go, sets the reply address its messages get by default, switches image hosting on or off, or replaces the page a recipient sees after they unsubscribe.
opensend workspace update [flags]Flags
--namestringA new name for the workspace. Up to 120 characters.
--unsubscribe-pageobjectHow the unsubscribe page should look. Send every field of it.
unsubscribePage.titlestringRequiredThe heading of the unsubscribe page. Up to 120 characters.
unsubscribePage.messagestringRequiredThe sentence under the heading. Up to 500 characters.
unsubscribePage.buttonstringRequiredThe words on the button. Up to 60 characters.
unsubscribePage.accentstringRequiredThe colour of the button, as a hex colour such as
#111111.unsubscribePage.askReasonbooleanRequiredWhether the page asks why the person is leaving.
unsubscribePage.showLogobooleanRequiredWhether the page shows your logo.
--billing-emailstringWhere invoices and billing notices should go. Up to 120 characters.
--reply-to"" | stringThe address replies go to when a message names none and its template has none: every email, broadcast and automation step of the workspace. Empty to have none.
--host-imagesbooleantrueto keep a copy of every image of your templates and broadcasts and link the copy in outgoing mail,falseto link each image where it is. Turning it off is not recommended: an image that moves or goes away on its own site then stops loading in mail that was already sent.
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"workspace"Always
workspace.idstringThe id of the workspace.
namestringThe name of the workspace.
slugstringThe name in lowercase letters, digits and dashes.
planobjectThe plan the workspace is on.
plan.idstringThe id of the plan:
free,proormax, orself_hostedon a server a team hosts itself.plan.namestringThe name of the plan.
plan.renewsAtstringWhen the counts of the current month start again.
plan.intervalstring | nullHow the plan is paid: by the
monthor by theyear.nullwhen nobody pays for it.One of
monthyearplan.paidUntilstring | nullUntil when the plan is paid for, or
null.plan.extraEmailCentsnumber | nullWhat every 1,000 emails past a limit cost on this plan, in cents of a US dollar, or
null.plan.stopsAtLimitbooleanWhether sending stops when the emails of the month are used up.
limitsobject[]Every limit of the plan, with how much of it is used.
limits[].idstringWhich limit this is, such as
domainsormembers.limits[].usednumberHow much of it is used in the current period.
limits[].limitnumberHow much the plan allows.
usageobject[]Everything that is counted, whether the plan limits it or not.
usage[].idstringWhat is counted, such as
transactionalorcontacts.usage[].usednumberHow much of it is used in the current period.
extraobjectWhat this month has used beyond the plan. Zero on a plan that stops at its limits.
extra.emailsintegerHow many emails went past the limits of the plan this month.
extra.centsintegerWhat they cost so far, in cents of a US dollar.
viewerobjectWho is asking.
viewer.namestringThe name of the person, or of the API key.
viewer.emailstringThe address of the person. Empty for an API key.
viewer.imagestring | nullThe address of their picture, or
null.viewer.kindstringHow the request was signed:
sessionfor a signed-in person,keyfor an API key.One of
sessionkeydemoviewer.rolestring | nullTheir role in the workspace, or
nullfor an API key.One of
owneradminmemberviewerstoragestringWhere the data is kept:
d1for the database,memorywhen nothing outlives a restart.One of
memoryd1servicesobject[]What the API is connected to, and whether each part works.
services[].idstringThe part:
api,sending,receiving,webhooks,payments,assistantorimages, the storage that keeps copies of your images.One of
apisendingreceivingwebhookspaymentsassistantimagesservices[].statestringokwhen it works,offwhen it is not connected,degradedordownwhen it fails.One of
okoffdegradeddownunsubscribePageobjectHow the unsubscribe page of the workspace looks.
unsubscribePage.titlestringThe heading of the unsubscribe page. Up to 120 characters.
unsubscribePage.messagestringThe sentence under the heading. Up to 500 characters.
unsubscribePage.buttonstringThe words on the button. Up to 60 characters.
unsubscribePage.accentstringThe colour of the button, as a hex colour such as
#111111.unsubscribePage.askReasonbooleanWhether the page asks why the person is leaving.
unsubscribePage.showLogobooleanWhether the page shows your logo.
billingEmailstringWhere invoices and billing notices are sent.
replyTostringThe address replies go to when a message names none and its template has none. Empty for none.
hostImagesbooleanWhether a copy is kept of every image of your templates and broadcasts, and outgoing mail links the copy. It only happens while the
imagesservice isok.createdAtstringWhen the workspace was made.