Skip to main content
PATCH
Edit the text, waits and conditions of a launched (or paused) campaign's steps in place. Each step keeps its id, type and place; pass the stepId and the updatedAt you read, and only the fields you change. A workflow keeps its paths and what each If / else checks (key, next, yesNext, noNext, check, conditionField, conditionOperator); conditionValue and acceptance waits stay editable. Messages already sent or being prepared keep their text; drafts use campaigns.steps.replace

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Path Parameters

sequenceId
string
required

Body

application/json
steps
object[]
required

The steps to change. Rejected, not trimmed: a field the step type would drop, an overlength note/message/InMail subject, out-of-range wait/withdrawal/post-age/acceptance values, {TOKEN} single braces, and a changed path or If / else check.

Required array length: 1 - 20 elements
allowSingleBraces
boolean

Send {single braces} exactly as typed instead of rejecting them. Merge tokens always use {{double braces}}.

Response

Successful response

ok
boolean
required
stepCount
number
required

How many steps were edited.