POST

Count Staff Members


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Counts how many staff members match the given filter.

Filter

Refer to the supported filters article (SDK | REST) for a complete list of supported filters and sorting options.

See also

To learn about working with filters in general, see API Query Language.

Permissions
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/bookings/v1/staff-members/count

Body Params
filterstruct

Filter to base the count upon. See the supported filters article (SDK | REST) for a complete list of supported filters.

Response Object
countinteger

Total number of staff members matching the given filter.

Count staff members, providing a filter to count specific staff members matching the filter.

Request
cURL
curl -X POST \ 'https://www.wixapis.com/bookings/v1/staff-members/count' \ -H 'Authorization: <AUTH>' \ -d '{ "filter": { "name": { "$eq": "Name that does not exist" } } }'
Response
JSON
{ "count": 0 }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?