PUT v2/Assets/{assetId}/CustomFields

Creates / updates the value for a specific custom field on a given asset.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
assetId

Asset to set the custom field value for.

integer

Required

Body Parameters

Values to set for the asset custom fields

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.

Request 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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The custom field value for this asset, if any.

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.