update

View as MarkdownOpen in Claude

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
1{
2 "id": "993ed018-9e79-4e50-b97b-984bd5534095",
3 "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
4 "display_name": "Main FreeSWITCH Server",
5 "type": "freeswitch_connector",
6 "created_at": "2024-05-06T12:20:00Z",
7 "updated_at": "2024-05-06T12:20:00Z",
8 "freeswitch_connector": {
9 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
10 "name": "Booking Assistant",
11 "caller_id": "123456",
12 "send_as": "123456"
13 }
14}

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
9updated = client.fabric.freeswitch_connectors.update("connector-id", name="updated-name")
10print(f"Updated: {updated['display_name']}")