GET Assets?assetId={assetId}&includeAllAncestors={includeAllAncestors}

Retrieves an asset by its Id.

Request Information

URI Parameters

NameDescriptionTypeAdditional 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.

NameDescriptionTypeAdditional information
Data

Asset

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "AssetId": "2ea72501-f542-46da-97fc-6181b647fb4c",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "0b39ee9a-94c9-48c3-8b6c-83c152a78fb8",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "b7db3641-b171-405b-b890-df3e6463a149",
      "CreateDate": "2024-11-21T04:44:29.8268371-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-11-21T04:44:29.8268371-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "AssetGroup": {
      "AssetGroupId": "937961b6-e1bc-482d-b2c4-94a08d9ecfe8",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-11-21T04:44:29.8268371-08:00",
      "MeasurementValueNeededDate": "2024-11-21T04:44:29.8268371-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "34b31ab9-1d4f-4fc7-9cb8-0fa3171f677c",
      "CreateDate": "2024-11-21T04:44:29.8268371-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T04:44:29.8268371-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2024-11-21T04:44:29.8268371-08:00",
    "MeasurementValueNeededDate": "2024-11-21T04:44:29.8268371-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "f481c1dd-99a1-4616-8ce3-9fc87b13dd25",
    "CreateDate": "2024-11-21T04:44:29.8268371-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T04:44:29.8268371-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}