GET StateTypes?assetTypeId={assetTypeId}&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 state types for the given parameters. All parameters are optional.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
assetTypeId |
Id of the asset type |
globally unique identifier |
None. |
take |
Number of state types to retrieve. Default is all state types |
integer |
None. |
skip |
Number of state types to skip before retrieval |
integer |
Default value is 0 |
sort |
List of sorting rules to describe how to sort the state types 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 state types.
Name | Description | Type | Additional information |
---|---|---|---|
Data | Collection of StateType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "StateTypeId": "5b5bb5a1-d502-4fd2-9f16-6e3b7d47f91c", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "325ae40a-a85d-412e-afad-9c295acef182", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "72ad6bee-3888-463d-baaf-23a4d766df8a", "CreateDate": "2024-07-26T22:51:53.3675479-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-07-26T22:51:53.3675479-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "02b02e41-d6ad-4301-bcec-e9262a9c4dc0", "CreateDate": "2024-07-26T22:51:53.3675479-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-07-26T22:51:53.3675479-07:00", "LastModifiedUser": "sample string 6" }, { "StateTypeId": "5b5bb5a1-d502-4fd2-9f16-6e3b7d47f91c", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "325ae40a-a85d-412e-afad-9c295acef182", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "72ad6bee-3888-463d-baaf-23a4d766df8a", "CreateDate": "2024-07-26T22:51:53.3675479-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-07-26T22:51:53.3675479-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "02b02e41-d6ad-4301-bcec-e9262a9c4dc0", "CreateDate": "2024-07-26T22:51:53.3675479-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-07-26T22:51:53.3675479-07:00", "LastModifiedUser": "sample string 6" } ], "Total": 1, "Message": "sample string 1" }