Skip to main content

Overview

You can update a formula’s name, targeting settings, schedule, and more using the update endpoint. To replace the message structure or add new alternates, use the message-content endpoints.

Updating Formula Metadata

All fields are optional — only include the fields you want to change.

Example: Rename a formula and set a schedule


Replacing the Message Structure

To replace what a formula’s message looks like — its slots and seed variants — update the message-content directly:
This is a full replacement. Include every section and slot you want to keep — anything omitted will be removed.

Step 1 — Get the message-content ID

Step 2 — Replace the structure

Pre-generate a component instance ID for each slot. The text in children[0].text becomes the seed variant (first alternate) for that slot.
After replacing the structure, add more alternates via POST /variants/create/bulk using the component instance IDs.

Adding Alternates to an Existing Formula

To add alternates to a formula without touching the structure, first fetch the existing component instance IDs from the message-content, then bulk-create:

Finding a Formula ID

Formulas are listed by lifecycle category and message type: