Update a Blueprint Step (this also moves the step if a new parent is specified)
Headers
-
Content-Type string
-
Accept string
Body
-
name string
Name of the automation step
-
type string
must be a verified action type or a condition
-
configuration array[string]
Configuration options for this step, requirements depend on type
-
parent_step_uuid string
Uuid of the step that run before this step, if the parent step is a condition type then a condition state must be given
-
condition_state boolean
Only required if parent step is a condition, the condition state will determine if this step runs in the true branch or the false branch of the parent condition
PUT
/api/v1/automation-blueprints/{automationBlueprint_uuid}/blueprint-steps/{blueprintStep_uuid}
curl \
--request PUT https://api.plannrcrm.com/api/v1/automation-blueprints/automationBlueprint_uuid/blueprint-steps/blueprintStep_uuid \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data '{"name":"send an email","type":"mail.send","configuration":[{"params":{"account_uuid":{"type":"ref","value":"trigger.account.uuid"}}}],"parent_step_uuid":"string","condition_state":true}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
# Payload
{
"name": "send an email",
"type": "mail.send",
"configuration": [
{
"params": {
"account_uuid": {
"type": "ref",
"value": "trigger.account.uuid"
}
}
}
],
"parent_step_uuid": "string",
"condition_state": true
}
Response examples (200)
{
"data": [
{
"name": "create a new client",
"type": "client.create",
"uuid": "99943671-bb34-4823-9079-fc67372f6a04",
"updated": "2025-02-20T10:13:05+00:00",
"created_at": "2025-02-20T10:13:05+00:00",
"configuration": {
"params": {
"account_uuid": {
"type": "ref",
"value": "trigger.account.uuid"
}
}
},
"condition_state": false,
"parent_step_uuid": "6a5255e6-0712-48f5-8c9a-d281c3f0d587"
}
]
}