Skip to content

Update a termination URI

PUT
/v1/Accounts/{auth_id}/SipTrunk/{trunk_id}/TerminationUri/{termination_uri_id}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/example/TerminationUri/example \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "sip_domain": "acme-trunk.pstn.siprtc.io", "update_authecredentiallist_ids": [ "6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01" ], "update_ipaccesscontrollist_ids": [ "0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01" ] }'

Changes the SIP domain of a termination URI and, optionally, its credential lists and IP access control lists. Lists you leave out or send empty keep their current IDs; the status cannot be changed here. A vendor account can pass customer_id to act on a direct child account’s record.

auth_id
required
string

Auth ID of your account.

trunk_id
required
string

ID of the trunk.

termination_uri_id
required
string

ID of the termination URI.

customer_id
string

Vendor accounts only: act on this direct child account instead of your own.

The changes.

Media type application/json
object
sip_domain
required

New SIP domain of the termination URI.

string

Example

acme-trunk.pstn.siprtc.io
update_authecredentiallist_ids

Replaces the credential list IDs. Leave out or send an empty array to keep the current ones.

Array<string>

Example

[
"6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01"
]
update_ipaccesscontrollist_ids

Replaces the IP access control list IDs. Leave out or send an empty array to keep the current ones.

Array<string>

Example

[
"0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01"
]

Updated (message “Termination updated successfully”).

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

Sip_domain is missing, the URI does not exist, the change failed, or the gateway did not supply your company (message “company id is empty”).

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

Missing or wrong Basic-auth credentials (returned by the API gateway).

Media type application/json
string

Example generated

example

Customer_id is not a direct child of your account.

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

Your account or the customer account could not be looked up.

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}