GET v2/Assets/{assetId}/CustomFields/{assetCustomFieldDefinitionId}

Retrieves the value for a specific custom field on a given asset.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
assetId

Asset to retrieve custom field value for.

integer

Required

assetCustomFieldDefinitionId

ID of the specific custom field value to retrieve.

integer

Required

Body Parameters

None.

Response Information

Resource Description

The custom field value for this asset, if any.

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"
}

application/xml, text/xml

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