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}/
{
  "api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
  "message": "Trunk updated successfully.",
  "trunk_id": "986908123123411213"
}

Updates a trunk’s name, status, direction, and other related properties.

API Endpoint

POST
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/{trunk_id}/

Arguments

name
string

Name of the trunk.

trunk_status
string

Status of the trunk.
Allowed values: enabled, disabled
Defaults to enabled

secure
boolean

Indicates whether the trunk is secured. Plivo uses SRTP to encrypt the call media and TLS to encrypt SIP signaling.
Allowed values: true, false
Defaults to false.

trunk_direction
string

Indicates the direction of the trunk.
Allowed values: outbound, inbound

ipacl_uuid
string

Unique identifier of IP access control list.

credential_uuid
string

Unique identifier of a credentials list.

primary_uri_uuid
string

Unique identifier of the origination URI used as a primary URI.

fallback_uri_uuid
string

Unique identifier of the origination URI used as a fallback URI.

Returns

Returns a confirmation that the trunk is updated.

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}/
{
  "api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
  "message": "Trunk updated successfully.",
  "trunk_id": "986908123123411213"
}