Cancel Dedicated IP Request

POST /v1/dedicated-ips/requests/{request_uuid}/cancel

Cancel a pending dedicated-IP request before it's fulfilled. Only requests in status: "pending" can be cancelled — already-fulfilled IPs need to be released via POST /v1/dedicated-ips/{uuid}/release instead, and denied requests can't be cancelled (use a fresh request).

Path parameters

request_uuid string (uuid) Req
The request's uuid from /dedicated-ips/requests.

Deprecated: the legacy integer id is still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuid.

Request body

None — empty body or {}.

Response (204 No Content)

Empty body on success.

Errors

400 Bad Request
An integer id after the sunset (integer_id_unsupported).
401 Unauthorized
Missing auth.
404 Not Found
Request not found or not pending — unknown uuid, a request of another account, or a request that is no longer pending.
Request
curl -X POST "https://api.ngris.com/v1/dedicated-ips/requests/019b1d33-2ca9-7bd2-b322-1330190fd290/cancel" \ -H "X-API-KEY: <your_api_key>" \ -H "Content-Type: application/json"
Python
from ngris import Ngris client = Ngris(api_key="<your_api_key>") client.dedicated_ips.cancel_request("019b1d33-2ca9-7bd2-b322-1330190fd290")
Response — 204 No Content
Was this helpful?
Was this helpful?