Skip to content

Delete an IP address

DELETE
/v1/Accounts/{auth_id}/SipTrunk/IPAclIPAddrs/{ip_address_id}
curl --request DELETE \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/IPAclIPAddrs/example \
--header 'Authorization: Basic <credentials>'

Marks an IP address record as deleted; calls from it are no longer allowed through its lists. 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.

Deleted (message “ipacl ipaddrs deleted 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"
}

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

The record does not exist, or an account lookup or the delete failed.

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