GET Assets?assetId={assetId}&includeAllAncestors={includeAllAncestors}
Retrieves an asset by its Id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
assetId |
Id of the asset |
globally unique identifier |
Required |
includeAllAncestors |
Indicates whether to include all ancestor assets and groups or just the immediate parents |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
On success, the asset.
Name | Description | Type | Additional information |
---|---|---|---|
Data | Asset |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "AssetId": "7b720f98-d346-44a1-91df-5148d66668a7", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "508c38f3-c1aa-4fbd-af7b-91e1fc5d02d4", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "023d8696-aee3-41fb-b355-939c1dcc98b4", "CreateDate": "2024-12-08T07:46:50.2898291-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T07:46:50.2898291-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "00214a78-9e6a-49a9-b80a-5d5dd65cc169", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-08T07:46:50.2898291-08:00", "MeasurementValueNeededDate": "2024-12-08T07:46:50.2898291-08:00", "SourceSystemId": "sample string 3", "CompanyId": "999ea97f-8081-4a2e-b82f-8faa72c9b655", "CreateDate": "2024-12-08T07:46:50.2898291-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T07:46:50.2898291-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-08T07:46:50.2898291-08:00", "MeasurementValueNeededDate": "2024-12-08T07:46:50.2898291-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "820c2598-338b-40fc-835a-aba2d41450b7", "CreateDate": "2024-12-08T07:46:50.2898291-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T07:46:50.2898291-08:00", "LastModifiedUser": "sample string 8" }, "Total": 1, "Message": "sample string 1" }