This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sets whether a staff member is a service provider, meaning someone who provides bookable services to customers.
Demoting a staff member to non-provider hides them from booking flows. Their working hours are preserved and existing bookings aren't affected. Shortly after the call, the staff member is also removed from Wix Bookings appointment services. This can leave a service with no assigned staff. To assign other staff members, call Update Service. Promoting the staff member again doesn't restore these service assignments.
To stop a staff member from being booked for a limited time, update their working hours instead.
Promoting a staff member to service provider also grants the Wix user connected to them the Staff role, if they don't already have it. Demoting the staff member doesn't revoke that role.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.