Create reservation

Request Information
URL POST {{basepath}}/reservation
CategoryReservation

Description

This allows you to reserve which server is chosen when the hosting is created through the hosting create endpoint.

The request body should contain a ReservationCreateRequest object.

Returns a ReservationCreateResponse object.

JSON
{
    "domain": "example-ewout.com",
    "server": "pleskdev12"
}

Example responses

Create reservation
Request Method & URL
POST {{basepath}}/reservation
Request Body:
{
    "domain": "example-ewout.com",
    "server": "pleskdev11"
}
Response Code:
200 OK
Response Body:
{
    "responseId": "1_244bbbd5b14a764986a4b8c101c14cd2ed156bc2",
    "status": "ok",
    "message": "Reservation created",
    "reservation": {
        "domain": "example-ewout.com",
        "server": "pleskdev11",
        "created": 1670496178,
        "modified": 1670496178,
        "activeUntil": 1670582578
    }
}
There is already a reservation
Request Method & URL
POST {{basepath}}/reservation
Request Body:
{
    "domain": "example-ewout.com",
    "server": "pleskdev11"
}
Response Code:
409 Conflict
Response Body:
{
    "responseId": "1_03d1f31f3146043e018d86ac4c091ee5e6ac9b18",
    "status": "error",
    "errorCode": "conflict",
    "errorMessage": "A reservation already exists for this domain it points to pleskdev12 it is active until 1670582071"
}