Updates a trunk’s name, status, direction, and other related properties.
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/{trunk_id}/| namestring |
Name of the trunk. |
| trunk_status string |
Status of the trunk. |
| secureboolean |
Indicates whether the trunk is secured. Plivo uses SRTP to encrypt the call media and TLS to encrypt SIP signaling. |
| trunk_directionstring |
Indicates the direction of the trunk. |
| ipacl_uuidstring |
Unique identifier of IP access control list. |
| credential_uuidstring |
Unique identifier of a credentials list. |
| primary_uri_uuidstring |
Unique identifier of the origination URI used as a primary URI. |
| fallback_uri_uuidstring |
Unique identifier of the origination URI used as a fallback URI. |
Returns a confirmation that the trunk is updated.
{
"api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
"message": "Trunk updated successfully.",
"trunk_id": "986908123123411213"
}
1
2
3
4
curl -i --user AUTH_ID:AUTH_TOKEN \
-H "Content-Type: application/json" \
-d '{"name": "testuser"}' \
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/{trunk_id}/