GET Units?take={take}&skip={skip}&sort[0].Field={sort[0].Field}&sort[0].Dir={sort[0].Dir}&sort[1].Field={sort[1].Field}&sort[1].Dir={sort[1].Dir}
Retrieves units for the given parameters. All parameters are optional.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
take |
Number of units to retrieve. Default is all units |
integer |
None. |
skip |
Number of units to skip before retrieval |
integer |
Default value is 0 |
sort |
List of sorting rules to describe how to sort the units before retrieval |
Collection of Sort |
None. |
Operator | string |
None. |
|
Field | string |
None. |
|
Value | string |
None. |
|
Logic | string |
None. |
|
Filters | Collection of Filter |
None. |
Body Parameters
None.
Response Information
Resource Description
On success, a list of units.
Name | Description | Type | Additional information |
---|---|---|---|
Data | Collection of Unit |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "UnitId": "32b5b254-32b8-4e3f-b854-4ebe7df73e4d", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "f45ad38b-b649-4441-9897-2f36c0b328e7", "CreateDate": "2024-12-08T07:29:38.7923832-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T07:29:38.7923832-08:00", "LastModifiedUser": "sample string 6" }, { "UnitId": "32b5b254-32b8-4e3f-b854-4ebe7df73e4d", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "f45ad38b-b649-4441-9897-2f36c0b328e7", "CreateDate": "2024-12-08T07:29:38.7923832-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T07:29:38.7923832-08:00", "LastModifiedUser": "sample string 6" } ], "Total": 1, "Message": "sample string 1" }