put
https://api.omnisend.com/api/automations//blocks
Replace the full block tree for an automation workflow.
Blocks identified by id are updated in place.
Blocks identified by temporaryID are created as new blocks.
Existing blocks not included in this array are removed.
Enabled automations cannot be restructured. Disable the automation via
POST /automations/{id}/disable, send the new block tree, then re-enable via
POST /automations/{id}/enable when ready. When disabling, contactsInWorkflow
controls whether contacts already in the workflow continue through the remaining
blocks (keep) or exit immediately (exit).
Scopes:
automations.write