Renew a hosting and its domain
Deferred Paid action
POST
https://api.lws.net/v1/
operationIdpostHostingRenew
Renew the hosting and domain for another period. Will only renew the hosting if the domain has not been bought at LWS. Make sure to use the GET /hosting/{hosting}/pricerenew endpoint to get the price of the renewal.
This request is processed in the background: it answers immediately while the work continues. Follow it with the task or request endpoints.
This is a paid action. Your prepaid account will be debited.
Path parameters
-
hostingstring required -
The domain name you want to renew
Responses
200
Renewal request received
{
"code": 200,
"info": "Your domain/hosting renewal request has been taken into account",
"data": {
"price": 4.99
}
}
Response fields 3
-
codeinteger -
infostring -
dataobjectPrice of the renewal
314
Domain not found on the account
314 is not a registered HTTP status code. It is specific to this API.
{
"code": 314,
"info": "Provided domain has not been found on your account. You must own this domain to manage it."
}
Response fields 2
-
codeinteger -
infostring
400
Invalid input
{
"code": 400,
"info": "No hosting provided",
"data": []
}
Response fields 3
-
codeinteger -
infostring -
dataany[]
401
Unauthorized - Missing authentication headers
{
"code": 401,
"info": "Unauthorized access to the API. Please specify X-Auth-Pass and X-Auth-Login to proceed."
}
Response fields 2
-
codeinteger -
infostring
429
Rate limit exceeded
{
"code": 429,
"info": "Rate limit exceeded. Please try again later."
}
Response fields 2
-
codeinteger -
infostring
500
Internal Server Error
{
"code": 500,
"info": "Internal Server Error",
"data": "Error message"
}
Response fields 3
-
codeinteger -
infostring -
datastring
502
Bad Gateway
{
"code": 502,
"info": "Invalid response from upstream server",
"data": []
}
Response fields 3
-
codeinteger -
infostring -
dataobject