curl -X PUT https://api.classet.ai/v2/message-automations/12/steps \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"steps": [
{
"id": 101,
"message": "Hi {candidate.firstname}, we are hiring for {job.title} at {org.organization_name}. Ready for a quick 5-min AI interview?",
"delay_hours": 0
},
{
"id": 102,
"delay_hours": 6,
"enabled": false
}
]
}'
{
"data": {
"updated": 2
}
}
Message Automations
Update Automation Steps
Update multiple steps at once. Each step is identified by its ID. Only provided fields are updated.
PUT
/
v2
/
message-automations
/
{automationId}
/
steps
curl -X PUT https://api.classet.ai/v2/message-automations/12/steps \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"steps": [
{
"id": 101,
"message": "Hi {candidate.firstname}, we are hiring for {job.title} at {org.organization_name}. Ready for a quick 5-min AI interview?",
"delay_hours": 0
},
{
"id": 102,
"delay_hours": 6,
"enabled": false
}
]
}'
{
"data": {
"updated": 2
}
}
Bulk update multiple steps in a message automation. Each step is identified by its ID. Only provided fields are updated per step.
curl -X PUT https://api.classet.ai/v2/message-automations/12/steps \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"steps": [
{
"id": 101,
"message": "Hi {candidate.firstname}, we are hiring for {job.title} at {org.organization_name}. Ready for a quick 5-min AI interview?",
"delay_hours": 0
},
{
"id": 102,
"delay_hours": 6,
"enabled": false
}
]
}'
{
"data": {
"updated": 2
}
}
You cannot change the
channel or order of a step via this endpoint. To change the sequence structure, delete and recreate the automation.Authorizations
Body
application/json
Array of step updates. Each element must include the step id and any fields to update.
Step fields:
| Field | Type | Description |
|---|---|---|
id | integer | Required. The step ID. |
message | string | Message template. Supports {candidate.firstname}, {job.title}, {org.organization_name}. |
name | string | Display name (e.g. "Initial Outreach"). |
delay_hours | number | Hours to wait after the previous step. |
enabled | boolean | Whether this step is active. |
Show child attributes
Show child attributes
Was this page helpful?