Skip to main content

Update stored SIPREC connector

PUT 
/siprec_connectors

Updates a stored SIPREC connector

Request

Path Parameters

    connector_name stringrequired

    Uniquely identifies a SIPREC connector

Body

required

The params expected to create/update a SIPREC connector

    host stringrequired

    Hostname/IPv4 address of SIPREC SRS to be used

    port integerrequired

    Port for SIPREC SRS to be used

    name stringrequired

    Name for the siprec connector resource.

    app_subdomain string

    Sip subdomain to route the call when using Telnyx SRS. Not required if non-Telnyx SRS is used.

Responses

200: Return details of the SIPREC connector associated with the given name.

default: Unexpected error.

Request samples


curl -L -X PUT 'https://api.telnyx.com/v2/siprec_connectors' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"host": "siprec.telnyx.com",
"port": 5060,
"name": "my-siprec-connector",
"app_subdomain": "my-app"
}'

Response samples


{
"data": {
"record_type": "siprec_connector",
"name": "siprec-connector",
"host": "siprec.telnyx.com",
"port": 5060,
"app_subdomain": "my-app-domain",
"created_at": "2024-01-23T18:10:02.574Z",
"updated_at": "2024-01-23T18:10:02.574Z"
}
}