POST

Count Resource Types


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

For field support for filters, see Resource types: Filtering and Sorting. 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/resource-types/count

Body Params
filterstruct

Filter to apply on resource types to count.

Response Object
countinteger

The number of resource types matching the given filter.

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

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

Did this help?