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 for more details.

Service locations

Don't call Update Service to adjust service locations, call Set Service Locations instead.

Add-on groups

Don't use Update Service to modify service add-on groups. Use these dedicated methods instead:

  • Update add-on group properties: Call Update Add On Group (SDK | REST).
  • Update add-on display order: Call Set Add Ons For Group (SDK | REST).
Authentication

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

Permissions
Manage Bookings
Learn more about app permissions.
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?