PATCH

Update Service


Updates a service.

Each time the service is updated, revision increments by 1. You must include the number of the existing revision when updating the service. This ensures you're working with the latest service information and prevents unintended overwrites.

Session durations

Specify schedule.availabilityConstraints.sessionDurations only if you want to update it for appointment-based services without varied pricing based on session length. Don't specify schedule.availabilityConstraints.sessionDurations for all other appointment-based services, classes, or courses. See Create Service (SDK | REST) for more details.

Service locations

Don't call Update Service to adjust service locations, call Set Service Locations (SDK | REST) instead.

Endpoint
PATCH
https://www.wixapis.com/_api/bookings/v2/services/{service.id}

Errors
400Invalid Argument

There are 21 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

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