Remove a web hosting cancellation
DELETE /api/v2/shared-hosting/{accountId}/cancellation
Withdraw a pending cancellation of a web hosting account. The account then keeps running. Read GET /api/v2/shared-hosting/{accountId}/cancellation first. Call this only when revokable is true. Only the account holder can do this. Contacts get 403 forbidden. The call answers 400 invalid_request when there is no pending cancellation. It does the same when the account has already ended. A 409 means another change to the account is in progress. Try again shortly. A plan change that was on hold because of the cancellation goes ahead again. The response says whether the account’s renewal dates were also corrected.
Authentication: An API key with the scope write:billing. About keys and scopes
Request
Path parameters
accountIdstringrequiredacct_…).Example
curl -X DELETE "https://cloud.hostup.se/api/v2/shared-hosting/acct_01hxa3b4c5d6e7f8g9h0j1k2m3/cancellation" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
200 Cancellation removed.
{ "revoked": true, "timelineRepaired": false}Response fields
revokedbooleantimelineRepairedbooleanErrors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller; code is shared_hosting_not_found. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |