This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Counts staff members according to given criteria.
Use WQL filter to define the criteria.
For field support for filters, see Staff Members: Supported Filters
The filters for performing the count.
The number of staff members matching the given filter.
Count staff members, providing a filter to count specific staff members matching the filter.
curl -X POST \
'https://www.wixapis.com/bookings/v1/staff-members/count' \
-H 'Authorization: <AUTH>' \
-d '{
"filter": {
"name": {
"$eq": "Name that does not exist"
}
}
}'
{
"count": 0
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.