POST

Bulk Update Services By Filter


Updates multiple services by filter.

Refer to the supported filters article (REST) for more details.

See Update Service (SDK | REST) for more details about updating a service.

The call succeeds even if one or more individual services can't be updated. Information about failures is returned in bulkActionMetadata.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/bookings/v2/bulk/services/update-by-filter

Body Params
filterstructRequired

Filter to identify the services to update.


serviceServiceRequired

Service to update.

Response Object
jobIdstringformat GUID

ID of the service update job.

Pass this ID to Get Async Job to retrieve job details and metadata.

Update the default capacity of all services of type CLASS
Request
cURL
curl -X POST 'https://www.wixapis.com/bookings/v2/bulk/services/update-by-filter' \ -H 'Authorization: <AUTH>' \ -d '{ "service": { "defaultCapacity": 25 }, "filter": { "type": "CLASS" }, "mask": { "paths": [ "defaultCapacity" ] } }'
Response
JSON
{ "jobId": "788da64a-2051-4e19-9b1e-8d7aacbebe13" }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?