Update a SIPREC connector
PUT/siprec_connectors/:connector_name
Updates a stored SIPREC connector configuration.
Request
Path Parameters
connector_name stringrequired
Uniquely identifies a SIPREC connector.
- application/json
Body
required
The parameters required to create or update a SIPREC connector.
host stringrequired
Hostname/IPv4 address of the SIPREC SRS.
port integerrequired
Port for the SIPREC SRS.
name stringrequired
Name for the SIPREC connector resource.
app_subdomain string
Subdomain to route the call when using Telnyx SRS (optional for non-Telnyx SRS).
Responses
200: Return details of the SIPREC connector.
- application/json
default: Unexpected error.
- application/json
Request samples
curl -L -X PUT 'https://api.telnyx.com/v2/siprec_connectors/:connector_name' \
-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"
}
}
{
"errors": [
{
"code": 0,
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}