setCxmlApplication

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

resourceId
stringRequired

ID of the phone number to bind.

applicationId
stringRequired

ID of the cXML application to route calls to.

extra
Record<string, unknown>Defaults to {}

Additional wire-level fields merged into the PUT body.

Returns

Promise<any> — The updated phone-number resource.

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
await client.phoneNumbers.setCxmlApplication("phone-number-id", "cxml-application-id");