GET v2/Assets/{assetId}/CustomFields

Retrieves the list of custom field values for the request asset.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
assetId

Asset to retrieve custom field values for.

integer

Required

Body Parameters

None.

Response Information

Resource Description

The list of custom field values for this asset, if any.

Collection of Lhp.EquipmentIntelligence.WebApi.Client.Models.AssetCustomFieldValue
NameDescriptionTypeAdditional information
AssetCustomFieldDefinitionId

Identifier of the definition of the custom field.

integer

None.

AssetId

Identifier of the asset the value is being assigned to.

integer

None.

Value

The value of the custom field for the assigned asset.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AssetCustomFieldDefinitionId": 1,
    "AssetId": 2,
    "Value": "sample string 3"
  },
  {
    "AssetCustomFieldDefinitionId": 1,
    "AssetId": 2,
    "Value": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAssetCustomFieldValue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AssetCustomFieldValue>
    <AssetCustomFieldDefinitionId>1</AssetCustomFieldDefinitionId>
    <AssetId>2</AssetId>
    <Value>sample string 3</Value>
  </AssetCustomFieldValue>
  <AssetCustomFieldValue>
    <AssetCustomFieldDefinitionId>1</AssetCustomFieldDefinitionId>
    <AssetId>2</AssetId>
    <Value>sample string 3</Value>
  </AssetCustomFieldValue>
</ArrayOfAssetCustomFieldValue>