> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# set_call_flow

> Route inbound calls to a Call Flow by ID.

[update]: /docs/server-sdks/reference/python/rest/phone-numbers/update

Route inbound calls on this phone number to an existing Call Flow by its ID.

This is a typed wrapper over [`update`][update] that sets `call_handler` to
`call_flow` and populates `call_flow_id` for you.

## **Parameters**

<ParamField path="resource_id" type="str" required={true} toc={true}>
  ID of the phone number to bind.
</ParamField>

<ParamField path="flow_id" type="str" required={true} toc={true}>
  ID of the Call Flow to route calls to.
</ParamField>

<ParamField path="version" type="Optional[str]" toc={true}>
  Which Call Flow version to invoke. Accepts `"working_copy"` or
  `"current_deployed"`. Defaults to the server's current deployed version when
  omitted.
</ParamField>

<ParamField path="**extra" type="Any" toc={true}>
  Additional fields forwarded to `update`.
</ParamField>

## **Returns**

`dict` -- The updated phone number resource.

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

client.phone_numbers.set_call_flow(
    "phone-number-id",
    "call-flow-id",
    version="working_copy",
)
```