Skip to navigation

Replace a FreeSWITCH connector resource. Uses PUT for full replacement.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of a FreeSWITCH Connector.

Request

namestringOptional
Name of the FreeSWITCH Connector
caller_idstringOptional
Caller ID for the connector
send_asstringOptional
Send as identifier

Response

idstringRequiredformat: "uuid"
Unique ID of the FreeSWITCH Connector.
project_idstringRequiredformat: "uuid"
Unique ID of the Project.
display_namestringRequired
Display name of the FreeSWITCH Connector Fabric Resource
typeenumRequired
Type of the Fabric Resource
Allowed values:
created_atdatetimeRequired
Date and time when the resource was created.
updated_atdatetimeRequired
Date and time when the resource was updated.
freeswitch_connectorobjectRequired
FreeSWITCH Connector data.

Response Example

Response
{
"id": "993ed018-9e79-4e50-b97b-984bd5534095",
"project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
"display_name": "Main FreeSWITCH Server",
"type": "freeswitch_connector",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"freeswitch_connector": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Booking Assistant",
"caller_id": "123456",
"send_as": "123456"
}
}

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com",
});
const updated = await client.fabric.freeswitchConnectors.update("connector-id", { name: "updated-name" });
console.log(`Updated: ${updated.display_name}`);