mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 08:01:16 +00:00
20 lines
653 B
JSON
20 lines
653 B
JSON
{
|
|
"url": "/contacts",
|
|
"method": "POST",
|
|
"body": [
|
|
{
|
|
"email": "{{parameters.email}}",
|
|
"first_name": "{{parameters.first_name}}",
|
|
"last_name": "{{parameters.last_name}}",
|
|
"company": "{{parameters.company}}",
|
|
"phone": "{{parameters.phone}}",
|
|
"campaigns": "{{parameters.campaigns}}",
|
|
"categories": "{{parameters.categories}}",
|
|
"custom_fields": "{{if(length(parameters.custom_fields) > 0, toCollection(parameters.custom_fields, 'key', 'value'))}}"
|
|
}
|
|
],
|
|
"response": {
|
|
"output": "{{ifempty(body.data.0, body)}}"
|
|
}
|
|
}
|