Updates up to 100 services.
See Update Service (SDK | REST) for more details.
The call succeeds even if one or more individual services can't be updated.
Information about failures is returned in bulkActionMetadata
.
You can only call this method when authenticated as a Wix app or Wix user identity.
Services to update.
Whether to include the updated services in the response. Default: false
The result of each service update.
Update statistics.
curl -X POST 'https://www.wixapis.com/bookings/v2/bulk/services/update' \
-H 'Authorization: <AUTH>' \
-d '{
"services": [
{
"service": {
"id": "b135b4f4-d0de-40cb-8447-f963689df81b",
"revision": "11",
"onlineBooking": {
"enabled": true
}
},
"mask": "onlineBooking.enabled"
},
{
"service": {
"id": "f07ca3ab-672d-4281-936b-88e8e071d155",
"revision": "10",
"hidden": true
},
"mask": "hidden"
}
]
"returnEntity": false
}'
{
"results": [
{
"itemMetadata": {
"id": "b135b4f4-d0de-40cb-8447-f963689df81b",
"originalIndex": 0,
"success": true
}
},
{
"itemMetadata": {
"id": "f07ca3ab-672d-4281-936b-88e8e071d155",
"originalIndex": 1,
"success": true
}
}
],
"bulkActionMetadata": {
"totalSuccesses": 2,
"totalFailures": 0,
"undetailedFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.