product-usage

Uoms Count Post

POST
Counts the number of Unit of Measurements based on the given filters.

Request

This endpoint expects an object.
aggregation_types
list of enumsOptional
List of aggregation types for filtering list of UOMs.
ids
list of stringsOptional
List of Unit of Measurement (UOM) DONs to be used in filtering complete list of UOMs defined in a Dev Org.
metric_names
list of stringsOptional
List of metric names for filtering list of UOMs.
part_ids
list of stringsOptional
List of part IDs for filtering list of UOMs.
product_ids
list of stringsOptional
List of product IDs for filtering list of UOMs.
unit_types
list of enumsOptional
List of unit types for filtering list of UOMs.
Allowed values: booleannumber

Response

This endpoint returns an object
count
integer
Count of Unit of Measurements matching the filter.
POST
1curl -X POST https://api.devrev.ai/uoms.count \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "count": 1
3}