Tuly Posted September 27, 2017 Report Posted September 27, 2017 how would i fill out the Callflow Name via API? for example i have this code, where do i put the call flow name? http://api.zzzz.com:8000/v2/accounts/xxxxxxxxxxxxxxxxxxxxxxxxx/callflows -d '{"data":{"flow":{"data":{"action":"static","caller_id":{"number":"7777777777","name":"ABC"}},"module":"dynamic_cid","children":{"_":{"data":{"pin":"","use_account_caller_id":false,"interdigit":"7000","preconnect_audio":"dialtone"},"module":"disa","children":{}}}},"numbers":["*1000"],"patterns":[],"id":""}}'
2600Hz Employees ... Posted September 27, 2017 2600Hz Employees Report Posted September 27, 2017 Hi @Tuly, To define the name of a callfow, you will have to create a `name` property at the root level of your callfow object. In your case, it would look like this: { "data": { "name": "Tuly's new callfow", "flow": { ... }, "numbers": [ "*1000" ], "patterns": [] } } Also, unless you are updating an existing callfow, you do not have to add the `id` property, as it will be generated automatically upon creation of your callfow.
Recommended Posts