> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/my-inventory/update-call-flow.md).

# Update Call Flow

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/dids/callflow/update>
{% endhint %}

Send us a GET or POST request with your key and the numbers (in the URI as key or as http password)

This will immediately attempt to order numbers. You can send the dids field as either a comma list of the numbers OR a json object of the numbers

<table data-header-hidden><thead><tr><th width="159"></th><th width="122"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>call_flow_id</td><td>yes</td><td>int</td></tr><tr><td>e164</td><td>yes</td><td>yes or no</td></tr><tr><td>voicemail_box</td><td>no</td><td>voicemail box id</td></tr><tr><td>ip_address_1</td><td>yes</td><td>ip you want to route calls to </td></tr><tr><td>ip_address_2</td><td>no</td><td>second ip address to load balance to</td></tr><tr><td>ip_address_3</td><td>no</td><td>third ip to load balance to</td></tr><tr><td>ip_address_4</td><td>no</td><td>fourth ip to load balance to</td></tr><tr><td>sip_port</td><td>no</td><td>alternative SIP UDP port</td></tr><tr><td>make_default</td><td>no</td><td>yes or no<br>make this the default for the account</td></tr><tr><td>wait_time</td><td>no</td><td>seconds to wait until call connects</td></tr></tbody></table>

{% tabs %}
{% tab title="Curl Post" %}

```php
curl -X POST https://v1.api19.com/dids/callflow/update \
 -d 'call_flow_id=444' \
 -d 'e164=yes' \
 -d 'voicemail_box=12345' \
 -d 'ip_address_1=207.181.189.120' \
 -d 'ip_address_2=192.168.1.100' \
 -d 'ip_address_3=192.168.1.101' \
 -d 'ip_address_4=192.168.1.102' \
 -d 'sip_port=5060' \
 -d 'make_default=no' \
 -d 'key=your-api-key'
```

{% endtab %}
{% endtabs %}

Responses

{% tabs %}
{% tab title="Success" %}

```javascript
{
    "status": "ok",
}
```

{% endtab %}

{% tab title="Invalid" %}

```php
{'status': 'error', 'error':'ip address 1 is invalid'}
```

{% endtab %}
{% endtabs %}
