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-ewout5.com",
    "server": "pleskdev",
    "reserveFor": 1,
    "package": "pro"
}

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 present for the domain
Request Method & URL
POST {{basepath}}/reservation
Request Body:
{
    "domain": "example-ewout.com",
    "server": "pleskdev",
    "reserveFor": 1,
    "package": "pro"
}
Response Code:
409 Conflict
Response Body:
{
    "responseId": "1_f5d00173b9036af21284b5969f6113c6547c1554",
    "errorCode": "conflict",
    "errorMessage": "A reservation already exists for this domain it points to pleskdev it is active until 1699955879",
    "reservation": {
        "domain": "example-ewout.com",
        "server": "pleskdev",
        "created": 1699952279,
        "modified": 1699952279,
        "activeUntil": 1699955879
    }
}