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": "702f8874-8a97-46bf-b33e-ad673ba84658",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "d08db674-94b0-4296-b0e2-14901cf9ca0e",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "f8e97167-eb41-4df9-944e-a70937c4875a",
      "CreateDate": "2024-12-22T02:53:11.2556836-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-12-22T02:53:11.2556836-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "AssetGroup": {
      "AssetGroupId": "1b4b8a8c-a449-4348-ac4b-5f6d1ad9773e",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-12-22T02:53:11.2556836-08:00",
      "MeasurementValueNeededDate": "2024-12-22T02:53:11.2556836-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "3f6df910-592a-405e-8987-215ed2c5ba2e",
      "CreateDate": "2024-12-22T02:53:11.2556836-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-12-22T02:53:11.2556836-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2024-12-22T02:53:11.2556836-08:00",
    "MeasurementValueNeededDate": "2024-12-22T02:53:11.2556836-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "31fb5249-2664-4bdf-9440-c19fff0e95f9",
    "CreateDate": "2024-12-22T02:53:11.2556836-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-12-22T02:53:11.2556836-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Total": 1,
  "Message": "sample string 1"
}