• About
    • For Developers
  • API Reference
    • Changelog
  • Guides
    • Account creation
    • Agents async API
    • Links
LogoLogo
API Referenceuoms

List UOMs

Beta
GET
https://api.devrev.ai/uoms.list
GET
/uoms.list
1curl https://api.devrev.ai/uoms.list \
2 -H "Authorization: Bearer <token>"
Try it
200Retrieved
1{
2 "uoms": [
3 {
4 "aggregation_details": {
5 "aggregation_type": "duration",
6 "unique_dimension": "string"
7 },
8 "id": "string",
9 "is_enabled": true,
10 "metric_name": "string",
11 "metric_scope": "org",
12 "name": "string",
13 "product": {
14 "display_id": "string",
15 "id": "string",
16 "name": "string",
17 "owned_by": [
18 {
19 "display_id": "string",
20 "id": "string",
21 "display_name": "string",
22 "display_picture": {
23 "display_id": {},
24 "id": {},
25 "file": {}
26 },
27 "email": "string",
28 "full_name": "string",
29 "state": "active"
30 }
31 ],
32 "sync_metadata": {
33 "external_reference": "string",
34 "origin_system": "string"
35 }
36 },
37 "unit": {
38 "type": "boolean",
39 "name": "string"
40 },
41 "created_by": {
42 "display_id": "string",
43 "id": "string",
44 "display_name": "string",
45 "display_picture": {
46 "display_id": "string",
47 "id": "string",
48 "file": {
49 "type": "string",
50 "name": "string",
51 "size": 1
52 }
53 },
54 "email": "string",
55 "full_name": "string",
56 "state": "active"
57 },
58 "created_date": "2023-01-01T12:00:00.000Z",
59 "description": "string",
60 "dimensions": [
61 "string"
62 ],
63 "display_id": "string",
64 "modified_by": {
65 "display_id": "string",
66 "id": "string",
67 "display_name": "string",
68 "display_picture": {
69 "display_id": "string",
70 "id": "string",
71 "file": {
72 "type": "string",
73 "name": "string",
74 "size": 1
75 }
76 },
77 "email": "string",
78 "full_name": "string",
79 "state": "active"
80 },
81 "modified_date": "2023-01-01T12:00:00.000Z",
82 "part": {
83 "display_id": "string",
84 "id": "string",
85 "name": "string",
86 "owned_by": [
87 {
88 "display_id": "string",
89 "id": "string",
90 "display_name": "string",
91 "display_picture": {
92 "display_id": {},
93 "id": {},
94 "file": {}
95 },
96 "email": "string",
97 "full_name": "string",
98 "state": "active"
99 }
100 ],
101 "sync_metadata": {
102 "external_reference": "string",
103 "origin_system": "string"
104 }
105 }
106 }
107 ],
108 "next_cursor": "string",
109 "prev_cursor": "string"
110}
Gets the Unit of Measurements based on the given filters.
Was this page helpful?
Previous

List UOMs (POST)

Next
Built with
Gets the Unit of Measurements based on the given filters.

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Query parameters

aggregation_typeslist of enumsOptional
List of aggregation types for filtering list of UOMs.
cursorstringOptionalformat: "text"
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
idslist of stringsOptional
List of aggregation types for filtering list of UOMs.
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
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_nameslist of stringsOptional
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:
part_idslist of stringsOptional
List of part IDs for filtering list of UOMs.
product_idslist of stringsOptional
List of product IDs for filtering list of UOMs.
sort_bylist of stringsOptional
Fields to sort the Unit Of Measuments (UOMs) by and the direction to sort them.
unit_typeslist of enumsOptional
List of unit types for filtering list of UOMs.
Allowed values:

Response

Success.
uomslist of objects
The list of Unit of Measurement (UOM) objects.
next_cursorstring or nullformat: "text"
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursorstring or nullformat: "text"
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.

Errors

List UOMs (POST)

The list of Unit of Measurement (UOM) objects.

Bearer authentication of the form Bearer <token>, where token is your auth token.

List of Unit of Measurement (UOM) DONs to be used in filtering complete list of UOMs defined in a Dev Org.

Fields to sort the Unit Of Measuments (UOMs) by and the direction to sort them.