Jump to content

Colson Hoxie

Customers
  • Posts

    3
  • Joined

Everything posted by Colson Hoxie

  1. I ended up writing a python script. The documentation for the request library was incorrect (or I was reading it wrong), but essentially I was trying to pass the json data as "data." Once I switched the data type to "json," it worked.  r = requests.post(url, headers=headers, json = payload1) the payload is the "data":{"flow: etc
  2. It was an error on my part. Figured it out!
  3. Hi there. I am attempting to set the part ring-back timeout, as well as forcing the ringback to go to a call group. Omitting keys, this is the line of code that I am using in the terminal: curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Auth-Token: xxxxxxxxxxx" -X POST -d "{"data":{"flow":{"data":{"action":"auto","default_ringback_timeout":300000},"module":"park","children":{}},"patterns":["^\\*3([0-9]*)$"],"featurecode":{"name":"park_and_retrieve","number":"3"},"ui_metadata":{"version":"4.0-10","ui":"monster-ui","origin":"callflows"},"numbers":[], "id":"CALLFLOW_ID"}}" http://SERVER:8000/v1/accounts/xxxxxxx/callflows/xxxxxxx  However, I am receiving a bad syntax error. I have been using at the code that Tuly has supplied to similar questions, though I have updated the version with the one that is shown when I do a GET call on the specific callflow ID. I am using Windows 10, hence the double quotation marks around the entire json code. It is also unclear how I would reroute a parked call that has timed out to an entire ring group. Thanks for any help.
×
×
  • Create New...