URL | POST {{basepath}}/reservation |
---|---|
Category | Reservation |
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.
{
"domain": "example-ewout.com",
"server": "pleskdev12"
}
POST {{basepath}}/reservation
{
"domain": "example-ewout.com",
"server": "pleskdev11"
}
200 OK
{
"responseId": "1_244bbbd5b14a764986a4b8c101c14cd2ed156bc2",
"status": "ok",
"message": "Reservation created",
"reservation": {
"domain": "example-ewout.com",
"server": "pleskdev11",
"created": 1670496178,
"modified": 1670496178,
"activeUntil": 1670582578
}
}
POST {{basepath}}/reservation
{
"domain": "example-ewout.com",
"server": "pleskdev11"
}
409 Conflict
{
"responseId": "1_03d1f31f3146043e018d86ac4c091ee5e6ac9b18",
"status": "error",
"errorCode": "conflict",
"errorMessage": "A reservation already exists for this domain it points to pleskdev12 it is active until 1670582071"
}