@windingtree/wt-write-api
Version:
API to write data to the Winding Tree platform
56 lines • 1.55 kB
JSON
{
"description": "Full snapshot of availability in time of `updatedAt`",
"type": "object",
"required": [
"roomTypes"
],
"properties": {
"updatedAt": {
"type": "string",
"format": "date-time"
},
"roomTypes": {
"description": "Array of AvailabilityForDay",
"type": "array",
"items": {
"type": "object",
"required": [
"roomTypeId",
"date",
"quantity"
],
"properties": {
"roomTypeId": {
"description": "The roomTypeId the availability is for",
"title": "ID",
"type": "string",
"maxLength": 100
},
"date": {
"description": "The date the availability is for",
"type": "string",
"format": "date"
},
"quantity": {
"description": "Number of free resources to book for the day",
"type": "integer"
},
"restrictions": {
"description": "Possible restrictions (this is not exhaustive and we might add more options in the future)",
"type": "object",
"properties": {
"noArrival": {
"type": "boolean",
"description": "It's not possible to arrive on this date"
},
"noDeparture": {
"type": "boolean",
"description": "It's not possible to depart on this date"
}
}
}
}
}
}
}
}