Skip to content

Update an IP address

PUT
/v1/Accounts/{auth_id}/SipTrunk/IPAclIPAddrs/{ip_address_id}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/IPAclIPAddrs/example \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "cidr": "203.0.113.11", "updated_ip_acl_list_id": [ "0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01" ] }'

Replaces the address of an IP address record and, optionally, the IP access control lists it belongs to (leave updated_ip_acl_list_id out to keep them). The new address must be unique on the owning account; unlike create, its format is not checked. 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_address_id
required
string

ID of the IP address record.

customer_id
string

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

The new values.

Media type application/json
object
cidr
required

New address. Unlike create, the format is not checked.

string

Example

203.0.113.11
updated_ip_acl_list_id

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 “ipacl ipaddrs 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"
}

Cidr is missing, the record does not exist, the address 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"
}