Skip to content

Update an IP access control list

PUT
/v1/Accounts/{auth_id}/SipTrunk/IPAcl/{ip_acl_id}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/IPAcl/example \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "ip_acl_name": "Office IPs", "update_ipacl_list_id": [ "203.0.113.10" ] }'

Renames an IP access control list and replaces its members. update_ipacl_list_id holds the addresses (not IDs) of the account’s IP address records that should be in the list afterwards: members not named are removed, named addresses are added, and [“”] empties the list. The name must be unique among the owning account’s lists; 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.

ip_acl_id
required
string

ID of the IP access control list.

customer_id
string

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

The new name and members.

Media type application/json
object
ip_acl_name
required

New name of the list.

string

Example

Office IPs
update_ipacl_list_id

Addresses (not IDs) of the account’s IP address records that should be in the list after the update. Members not named are removed; [“”] removes every member.

Array<string>

Example

[
"203.0.113.10"
]

Updated (message “ipacl 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"
}

Ip_acl_name is missing, the list does not exist, the name is taken, 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"
}