Create a Blueprint Step
Headers
-
Content-Type string
-
Accept string
Body Required
-
Name of the automation step
-
Must be a verified action type or a condition
-
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
POST
/api/v1/automation-blueprints/{automationBlueprint_uuid}/blueprint-steps
curl \
-X POST https://api.plannrcrm.com/api/v1/automation-blueprints/automationBlueprint_uuid/blueprint-steps \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"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 (201)
{
"data": [
{
"name": "create a new client",
"type": "client.create",
"uuid": "f74212ed-0417-497c-983a-e7ce7edc42d0",
"updated": "2025-01-17T11:18:32+00:00",
"created_at": "2025-01-17T11:18:32+00:00",
"configuration": {
"params": {
"account_uuid": {
"type": "ref",
"value": "trigger.account.uuid"
}
}
},
"condition_state": false,
"parent_step_uuid": "30f6e4c4-06de-46e6-bd6e-01688792778d"
}
]
}