This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sets whether the current provider receives new leads.
Set enabled to false to pause all new leads (for example, while on vacation) and true to resume.
The provider must be published; otherwise the call fails with NOT_PUBLISHED. Calling with availability
already set to the requested value fails with ALREADY_SET. Resuming availability also clears any active
prolonged-unavailability warning on the provider's status.
You can only call this method when authenticated as a Wix user or by using an account level API key.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.