Latest

Update a trunk

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

namestring

Name of the trunk.

trunk_status string

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

secureboolean

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_directionstring

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

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

Returns a confirmation that the trunk is updated.

Response

{
  "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}/