ResourcesBookings
Set booking date availability
Block or reopen one or more local booking dates.
Send available: false to block the dates. Send available: true to clear the exact block. For a variant inheriting a store-wide block, available: true creates an explicit variant override.
Authorization
bearerAuth storeAuth AuthorizationBearer <token>
Provide your SellApp API key as a bearer token.
In: header
X-STORE<token>
Select the SellApp store for this API request.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://sell.app/api/v2/booking-calendar-events" \ -H "Content-Type: application/json" \ -d '{ "product_variant_id": 73, "dates": [ "2028-03-26", "2028-03-27" ], "available": false }'{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"product_id": 0,
"product_variant_id": 0,
"type": "blocked",
"status": "active",
"title": "string",
"slot_start_at": "2019-08-24T14:15:22Z",
"slot_end_at": "2019-08-24T14:15:22Z",
"timezone": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}