Request
Path Parameters
The campaign’s unique ID (UUID)
The step’s unique ID (UUID)
Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
Requires an API key with the campaigns:write permission. All body fields are optional — include only fields you want to change.
Body Parameters
Days to wait after previous step
always, if_no_reply, if_no_open, if_opened, or if_clicked
Updating a step only affects future sends. Contacts who have already received this step under the previous configuration are unaffected.
Response
curl -X PATCH https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/cmp_abc123/steps/step_2 \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"delay_days": 5}'
Example Response
{
"data": {
"step": {
"id": "step_2",
"index": 1,
"subject": "Re: {{company_name}}",
"body": "Just circling back on my note from last week...",
"delay_days": 5,
"delay_hours": 0,
"send_condition": "if_no_reply"
}
}
}
Errors
| Status | Code | Description |
|---|
| 400 | invalid_send_condition | Unrecognized send_condition |
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing campaigns:write permission |
| 404 | campaign_not_found | No campaign with this ID |
| 404 | step_not_found | No step with this ID in the campaign |
| 429 | rate_limited | Rate limit exceeded |