REST ClientPhone Numbers

set_cxml_application

View as MarkdownOpen in Claude

Route inbound calls on this phone number to an existing cXML (LAML) application by its ID. The server auto-creates a cxml_application Fabric resource referencing the application.

This is a typed wrapper over update that sets call_handler to laml_application and populates call_laml_application_id for you.

Parameters

resource_id
strRequired

ID of the phone number to bind.

application_id
strRequired

ID of the cXML application to route calls to.

**extra
Any

Additional fields forwarded to update.

Returns

dict — The updated phone number resource.

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9client.phone_numbers.set_cxml_application(
10 "phone-number-id",
11 "cxml-application-id",
12)