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": "d74493b0-f9e1-4090-970a-160ab5eb0353",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "49c90cbf-377e-45ac-9199-3bd06d1257a5",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "8ef8c7e8-6d11-4d4a-a06f-1ed16495360d",
      "CreateDate": "2021-04-17T08:34:12.6738817-07:00",
      "CreateUser": "sample string 6",
      "CreateMachine": "sample string 7",
      "LastModifiedDate": "2021-04-17T08:34:12.6738817-07:00",
      "LastModifiedUser": "sample string 8",
      "LastModifiedMachine": "sample string 9"
    },
    "AssetGroup": {
      "AssetGroupId": "5065928f-496d-458b-8271-24d6901b7e21",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2021-04-17T08:34:12.6738817-07:00",
      "MeasurementValueNeededDate": "2021-04-17T08:34:12.6738817-07:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "e3fc4713-92c3-41c4-9f44-5442bbe8caca",
      "CreateDate": "2021-04-17T08:34:12.6738817-07:00",
      "CreateUser": "sample string 5",
      "CreateMachine": "sample string 6",
      "LastModifiedDate": "2021-04-17T08:34:12.6738817-07:00",
      "LastModifiedUser": "sample string 7",
      "LastModifiedMachine": "sample string 8"
    },
    "ParentAsset": null,
    "WellKnownText": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2021-04-17T08:34:12.6738817-07:00",
    "MeasurementValueNeededDate": "2021-04-17T08:34:12.6738817-07:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "cc1502fe-de5e-4127-ab98-5105bd94ae07",
    "CreateDate": "2021-04-17T08:34:12.6738817-07:00",
    "CreateUser": "sample string 7",
    "CreateMachine": "sample string 8",
    "LastModifiedDate": "2021-04-17T08:34:12.6738817-07:00",
    "LastModifiedUser": "sample string 9",
    "LastModifiedMachine": "sample string 10"
  },
  "Total": 1,
  "Message": "sample string 1"
}