curl --request PATCH \
--url https://api.cleartalk.ai/sip/sip2 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"trunkName": "Head Office",
"phone_number": "+15550000000",
"directions": [
{
"type": "outbound",
"headers": {
"direction": "outbound",
"headers": [
{
"type": "custom",
"key": "X-Customer-ID",
"value": "12345",
"passthrough": true,
"target": "<string>",
"purpose": "<string>",
"encoding": "<string>",
"content": "<string>"
}
]
},
"sip_endpoint": "sip:192.168.1.100",
"options": {
"port": 5060,
"transport": "udp",
"secure_media": false,
"sip_username": "<string>",
"sip_password": "<string>"
}
}
],
"uuid_config_id": "550e8400-e29b-41d4-a716-446655440000"
}
'Updates trunk name and/or directions (inbound/outbound). Automatically manages attach/detach/update operations with cleartalk AI based on changes detected.
curl --request PATCH \
--url https://api.cleartalk.ai/sip/sip2 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"trunkName": "Head Office",
"phone_number": "+15550000000",
"directions": [
{
"type": "outbound",
"headers": {
"direction": "outbound",
"headers": [
{
"type": "custom",
"key": "X-Customer-ID",
"value": "12345",
"passthrough": true,
"target": "<string>",
"purpose": "<string>",
"encoding": "<string>",
"content": "<string>"
}
]
},
"sip_endpoint": "sip:192.168.1.100",
"options": {
"port": 5060,
"transport": "udp",
"secure_media": false,
"sip_username": "<string>",
"sip_password": "<string>"
}
}
],
"uuid_config_id": "550e8400-e29b-41d4-a716-446655440000"
}
'API Key for authentication
Internal name to identify the Trunk
"Head Office"
Phone number assigned by cleartalk AI
"+15550000000"
Show child attributes
UUID of the configuration sip local
"550e8400-e29b-41d4-a716-446655440000"
SIP configuration updated successfully