POST

Count Resources


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 resources according to given criteria.

Use WQL filter to define the criteria.

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/v2/resources/count

Body Params
filterstruct

Filter to apply on resources to count.


searchSearchdeprecated
Response Object
countinteger

The number of resources matching the given filter.

Request
cURL
curl -X POST \ 'https://www.wixapis.com/bookings/v2/resources/count' \ -H 'Authorization: <AUTH>' \ -d '{}'
Response
JSON
{ "count": 4 }
Errors

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

Did this help?