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

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

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