This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates multiple resources.
You can only call this method when authenticated as a Wix app or Wix user identity.
Resources to create.
Whether to include the created resources in the response. Default: false
The result of each resource creation.
Create statistics.
curl -X POST \
'https://www.wixapis.com/bookings/v2/bulk/resources/create' \
-H 'Authorization: <AUTH>' \
-d '{
"resources": [
{
"name": "Small meeting room",
"typeId": "dd7790c7-f3ac-4821-accb-52ed385fd932",
"location_options": {
"specific_location_options": {
"business_locations": [
{
"location_id": "808dfb00-0a74-4e70-bb3b-f96ff6ba1246"
}
],
"available_in_business_locations": true
}
}
}
],
"return_entity": "true"
}'
{
"results": [
{
"itemMetadata": {
"id": "ef5f8d3d-9269-490c-a067-a3d226fcb5d8",
"originalIndex": 0,
"success": true
},
"item": {
"id": "ef5f8d3d-9269-490c-a067-a3d226fcb5d8",
"revision": "1",
"createdDate": "2024-11-22T14:02:34.993Z",
"updatedDate": "2024-11-22T14:02:34.993Z",
"name": "Small meeting room",
"typeId": "dd7790c7-f3ac-4821-accb-52ed385fd932",
"locationOptions": {
"availableInAllLocations": false,
"specificLocationOptions": {
"availableInBusinessLocations": true,
"businessLocations": [
{
"locationId": "808dfb00-0a74-4e70-bb3b-f96ff6ba1246"
}
]
}
},
"eventsSchedule": {
"scheduleId": "ee500718-7ce3-478a-89fb-1d839a37e324"
}
}
}
],
"bulkActionMetadata": {
"totalSuccesses": 1,
"totalFailures": 0,
"undetailedFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.