Matthew_Justin_Lovel, This is an example of how to update a resource’s availabilities
availabilities: The working days and hours of resources.
availabilitiesRange: The valid date range for availabilities. For example, if set from 2025-12-01 to 2025-12-03, resources can only be booked within that period.
timezone: The timezone in which the availabilities are stored. For example, 11:00 in Europe/Paris.
curl -X PATCH 'https://api.sesami.co/api/v1/{SESAMI_SHOP_ID}/resources/{resourceID}' \
--header 'x-shop-id: SESAMI'_SHOP_ID \
--header 'x-client-id: YOUR'_CLIENT_ID \
--header 'x-api-key: YOU'R_TOKEN \
--header 'Content-Type: application/json' \
--data '{
"availabilities": [
{
"type":"wday",
"date": null,
"weekday":"thursday",
"intervals": [
{
"from":"10:00",
"to":"11:00"
}, {
"from": "12:00",
"to": "13:00"
}
]
}
],
"availabilitiesRange": {
"availableFrom": {
"type": "DAYS_INTO_THE_FUTURE",
"value":10
},
"availableTo": {
"type": "EXACT_DATE",
"value":"2026-03-03"
}
}
"timezone":"Europe/Paris"
}'
Note: EXACT_DATE format is yyyy-MM-dd.e.g. 2026-01-02
Note: you can also create availabilities for specific date.
"availabilities": [
{
"type":"date",
"date": "2025-12-08,
"weekday":null,
"intervals": [
{
"from":"10:00",
"to":"11:00"
}, {
"from": "12:00",
"to": "13:00"
}
]
}
]
You can also use these variables for the availableFrom:
{type: NOW, value:0}
{type: DAAYS_INTO_THE_FUTURE, value: positive number},
{type: EXACT_DATE, value: 'yyyy-MM-dd'}
And For availableTo:
{type: INDEFINITELY, value:0}
{type: DAAYS_INTO_THE_FUTURE, value: positive number},
{type: EXACT_DATE, value: 'yyyy-MM-dd'}