...
to specify for which contact it is to be done (GET /contracts method);
to specify for which room (categoryId and serviceId) availability is to be added (method GET /availability).
Example of the request PUT /availability API method to add availability as certain number of rooms:
[{ "dayOfWeek": [ true, true, true, true, true, true, true ], "amount": 10, "dateFrom": "2023-01-02", "dateTo": "2023-12-31", "categoryId": 6025430, "serviceId": 6025431, "operation": "SET" } ] |
Response Body
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "items": [ { "operation": "SET", "inventoryInstanceId": 1, "contractId": 6025425, "dateFrom": "2023-01-19", "dateTo": "2023-12-31", "serviceId": 6025431, "categoryId": 6025430, "amount": 10, "dayOfWeek": [ true, true, true, true, true, true, true ] } ], "asynchronous": false |
}