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": "0f67413e-6f95-42e9-87bf-811b8f0d19b4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "75ab2846-ffa2-4090-8858-3ac210e0c51d", "CreateDate": "2024-10-10T15:24:12.1170041-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:24:12.1170041-07:00", "LastModifiedUser": "sample string 6" }, { "UnitId": "0f67413e-6f95-42e9-87bf-811b8f0d19b4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "75ab2846-ffa2-4090-8858-3ac210e0c51d", "CreateDate": "2024-10-10T15:24:12.1170041-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:24:12.1170041-07:00", "LastModifiedUser": "sample string 6" } ], "Total": 1, "Message": "sample string 1" }