Skip to content

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

accountIdstringrequired
The web hosting account ID (acct_…).

Example

DELETE /api/v2/shared-hosting/{accountId}/cancellation
curl -X DELETE "https://cloud.hostup.se/api/v2/shared-hosting/acct_01hxa3b4c5d6e7f8g9h0j1k2m3/cancellation" \
-H "Authorization: Bearer $HOSTUP_API_KEY"

Responses

200 Cancellation removed.

Response 200
{
"revoked": true,
"timelineRepaired": false
}
Response fields
revokedboolean
True when the request to remove the cancellation was accepted.
timelineRepairedboolean
True when the renewal settings of the service also had to be restored when the cancellation was removed.

Errors

Errors are Problem Details with a stable code. Branch on the code, not on the text.

400Invalid request. The response body is an RFC 7807 Problem Details document.
401Unauthorized. Authentication is required.
403Forbidden. The caller lacks a required scope or does not own the resource.
404Not found. The resource does not exist or is not owned by the caller; code is shared_hosting_not_found.
429Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
500Internal error. Retry later or contact support if the issue persists.