product-usage

Uoms List

GET
Gets the Unit of Measurements based on the given filters.

Query parameters

aggregation_typesenumOptional
List of aggregation types for filtering list of UOMs.
cursorstringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
idsstringOptional
List of Unit of Measurement (UOM) DONs to be used in filtering complete list of UOMs defined in a Dev Org.
limitintegerOptional
The maximum number of UOMs to be returned in a response. The default is '50'.
metric_namesstringOptional
List of metric names for filtering list of UOMs.
modeenumOptional
The iteration mode to use, otherwise if not set, then "after" is used.
Allowed values: afterbefore
part_idsstringOptional
List of part IDs for filtering list of UOMs.
product_idsstringOptional
List of product IDs for filtering list of UOMs.
sort_bystringOptional
Fields to sort the Unit Of Measuments (UOMs) by and the direction to sort them.
unit_typesenumOptional
List of unit types for filtering list of UOMs.
Allowed values: booleannumber

Response

This endpoint returns an object
uoms
list of objects
The list of Unit of Measurement (UOM) objects.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
GET
1curl https://api.devrev.ai/uoms.list \
2 -H "Authorization: <apiKey>"
200
Retrieved
1{
2 "uoms": [],
3 "next_cursor": "next_cursor",
4 "prev_cursor": "prev_cursor"
5}