Jump to content

Callflow Name with API


Tuly

Recommended Posts

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":""}}'

 

Capture.JPG

Link to comment
Share on other sites

  • 2600Hz Employees

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.

Link to comment
Share on other sites

×
×
  • Create New...