Update a Automation Blueprint
Headers
-
Content-Type string
-
Accept string
Body
-
name string
Name of the automation
-
trigger string
What triggers this automation
-
is_active boolean
Is this automation currently active
-
conditions array[string]
List of conditions to evaluate on the trigger before running automation, operator types can be on ofequals, not_equal_to, more_than, less_than, less_than_or_equal_to and more_than_or_equal_to
-
configuration array[string]
Extra configuration options for the trigger of this blueprint
PUT /api/v1/automation-blueprints/{automationBlueprint_uuid}
curl \
-X PUT https://api.plannrcrm.com/api/v1/automation-blueprints/automationBlueprint_uuid \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"Add a new client to system on calendly webhook","trigger":"webhook","is_active":false,"conditions":[{"field":"client.is_prospect","value":true,"operator":"equals"}],"configuration":["string"]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
# Payload
{
"name": "Add a new client to system on calendly webhook",
"trigger": "webhook",
"is_active": false,
"conditions": [
{
"field": "client.is_prospect",
"value": true,
"operator": "equals"
}
],
"configuration": [
"string"
]
}
Response examples (200)
{
"name": "Add new client on webhook",
"uuid": "f9ab99e6-c641-40a3-8323-6d713b7bc987",
"steps": [
{
"name": "create a new client",
"type": "client.create",
"uuid": "af892f25-8052-4bb4-bc43-a288e6c722f2",
"updated": "2024-11-20T13:24:03+00:00",
"created_at": "2024-11-20T13:24:03+00:00",
"configuration": {
"params": {
"account_uuid": {
"type": "ref",
"value": "trigger.account.uuid"
}
}
},
"condition_state": false,
"parent_step_uuid": "2bbecbe9-8a07-4b63-b7e4-d29659a0a997"
}
],
"account": {
"firm": "App\\Http\\Resources\\FirmResource",
"name": "Gareth Thompson",
"role": "client",
"tags": "App\\Http\\Resources\\TagResource",
"type": "client",
"uuid": "2bbadea0-7712-48aa-9a2c-eab86752ef8c",
"email": "gareth@codepotato.co.uk",
"groups": "App\\Http\\Resources\\GroupResource",
"owners": "App\\Http\\Resources\\AccountResource",
"last_name": "Thompson",
"created_at": "2024-11-20T13:24:03+00:00",
"first_name": "Gareth",
"updated_at": "2024-11-20T13:24:03+00:00",
"with_login": true,
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"introduced_by": "App\\Http\\Resources\\AccountResource",
"primary_email": "App\\Http\\Resources\\ContactDetailResource",
"can_be_deleted": "false",
"assigned_adviser": "App\\Http\\Resources\\AccountResource",
"next_review_date": "2024-11-20T13:24:03+00:00",
"has_joint_account": true,
"current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
"first_contact_date": "2024-11-20T13:24:03+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource",
"assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
"previous_review_date": "2024-11-20T13:24:03+00:00",
"primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
"assigned_administrator": "App\\Http\\Resources\\AccountResource",
"anniversary_review_date": "2024-11-20T13:24:03+00:00"
},
"trigger": "client.create",
"is_active": false,
"conditions": [],
"created_at": "2024-11-20T13:24:03+00:00",
"updated_at": "2024-11-20T13:24:03+00:00",
"steps_count": "1",
"configuration": [],
"webhook_targets": [
{
"url": "https://api.plannrcrm.com/api/v1/webhooks/01605357-9fba-4cab-b4f0-141476dfa4ea",
"uuid": "951f6116-80e7-490a-ba46-d9daa272c7a2",
"created_at": "2024-11-20T13:24:03+00:00",
"updated_at": "2024-11-20T13:24:03+00:00"
}
]
}