Skip to the page

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.

workspace_update
Needs the scopeworkspace:write
Changes data

Arguments

  • namestring

    A new name for the workspace. Up to 120 characters.

  • unsubscribePageobject

    How the unsubscribe page should look. Send every field of it.

  • unsubscribePage.titlestringRequired

    The heading of the unsubscribe page. Up to 120 characters.

  • unsubscribePage.messagestringRequired

    The sentence under the heading. Up to 500 characters.

  • unsubscribePage.buttonstringRequired

    The words on the button. Up to 60 characters.

  • unsubscribePage.accentstringRequired

    The colour of the button, as a hex colour such as #111111.

  • unsubscribePage.askReasonbooleanRequired

    Whether the page asks why the person is leaving.

  • unsubscribePage.showLogobooleanRequired

    Whether the page shows your logo.

  • billingEmailstring

    Where invoices and billing notices should go. Up to 120 characters.

  • replyTo"" | string

    The 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.

  • hostImagesboolean

    true to keep a copy of every image of your templates and broadcasts and link the copy in outgoing mail, false to 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 answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"workspace"

    Always workspace.

  • idstring

    The id of the workspace.

  • namestring

    The name of the workspace.

  • slugstring

    The name in lowercase letters, digits and dashes.

  • planobject

    The plan the workspace is on.

  • plan.idstring

    The id of the plan: free, pro or max, or self_hosted on a server a team hosts itself.

  • plan.namestring

    The name of the plan.

  • plan.renewsAtstring

    When the counts of the current month start again.

  • plan.intervalstring | null

    How the plan is paid: by the month or by the year. null when nobody pays for it.

    One ofmonthyear

  • plan.paidUntilstring | null

    Until when the plan is paid for, or null.

  • plan.extraEmailCentsnumber | null

    What every 1,000 emails past a limit cost on this plan, in cents of a US dollar, or null.

  • plan.stopsAtLimitboolean

    Whether 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[].idstring

    Which limit this is, such as domains or members.

  • limits[].usednumber

    How much of it is used in the current period.

  • limits[].limitnumber

    How much the plan allows.

  • usageobject[]

    Everything that is counted, whether the plan limits it or not.

  • usage[].idstring

    What is counted, such as transactional or contacts.

  • usage[].usednumber

    How much of it is used in the current period.

  • extraobject

    What this month has used beyond the plan. Zero on a plan that stops at its limits.

  • extra.emailsinteger

    How many emails went past the limits of the plan this month.

  • extra.centsinteger

    What they cost so far, in cents of a US dollar.

  • viewerobject

    Who is asking.

  • viewer.namestring

    The name of the person, or of the API key.

  • viewer.emailstring

    The address of the person. Empty for an API key.

  • viewer.imagestring | null

    The address of their picture, or null.

  • viewer.kindstring

    How the request was signed: session for a signed-in person, key for an API key.

    One ofsessionkeydemo

  • viewer.rolestring | null

    Their role in the workspace, or null for an API key.

    One ofowneradminmemberviewer

  • storagestring

    Where the data is kept: d1 for the database, memory when nothing outlives a restart.

    One ofmemoryd1

  • servicesobject[]

    What the API is connected to, and whether each part works.

  • services[].idstring

    The part: api, sending, receiving, webhooks, payments, assistant or images, the storage that keeps copies of your images.

    One ofapisendingreceivingwebhookspaymentsassistantimages

  • services[].statestring

    ok when it works, off when it is not connected, degraded or down when it fails.

    One ofokoffdegradeddown

  • unsubscribePageobject

    How the unsubscribe page of the workspace looks.

  • unsubscribePage.titlestring

    The heading of the unsubscribe page. Up to 120 characters.

  • unsubscribePage.messagestring

    The sentence under the heading. Up to 500 characters.

  • unsubscribePage.buttonstring

    The words on the button. Up to 60 characters.

  • unsubscribePage.accentstring

    The colour of the button, as a hex colour such as #111111.

  • unsubscribePage.askReasonboolean

    Whether the page asks why the person is leaving.

  • unsubscribePage.showLogoboolean

    Whether the page shows your logo.

  • billingEmailstring

    Where invoices and billing notices are sent.

  • replyTostring

    The address replies go to when a message names none and its template has none. Empty for none.

  • hostImagesboolean

    Whether a copy is kept of every image of your templates and broadcasts, and outgoing mail links the copy. It only happens while the images service is ok.

  • createdAtstring

    When the workspace was made.