curl --request PATCH \
--url https://{api_endpoint}/api/v1/channels/phone/{config_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"service_provider": "sip_trunk",
"security": {
"api_key": "<string>",
"client_secret": "<string>",
"secure_trunking": false,
"authentication": false,
"username": "<string>",
"password": "<string>",
"password_is_set": false
},
"attached_environments": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"environment_name": "<string>"
}
],
"custom_invite_headers": [
{
"name": "<string>"
}
],
"put_caller_on_hold_on_transfer": true,
"send_provisional_response": true,
"error_handling": {
"fallback_sip_uri": "<string>",
"transfer_failure": {},
"call_failure": {}
},
"phone_numbers": [
{
"phone_number": "<string>",
"description": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'