PUT api/v2/items/{itemEntityId}/attributes

Update item properties and attributes. item should exist and be active. Attributes should be defined in application. If item does not have some attribute, it will be created if possible. Any item may have global attribute. If you want to update item category attribute, then item should belong to this category.Authentication used for this call should have "Asset Administration/Modify" privilege

Request Information

URI Parameters

NameDescriptionTypeAdditional information
itemEntityId

Item identificator (EntityId)

string

Required

Body Parameters

Object with list of attributes with changed values

AttributesInfo
NameDescriptionTypeAdditional information
attributes

Properties and Attributes to update. Properties have predefined names (case-insensitive). Valid properties: FirstUseTime. Attributes that don't have changes will be ignored and should be omitted to save bandwidth.

Collection of AttributeInfo

None.

Request Formats

application/xml, text/xml

Sample:
<attributes-info xmlns="urn:tagvue:am">
  <attributes>
    <attribute>
      <name>sample string 1</name>
      <value>sample string 2</value>
    </attribute>
    <attribute>
      <name>sample string 1</name>
      <value>sample string 2</value>
    </attribute>
  </attributes>
</attributes-info>

application/json, text/json

Sample:
{
  "attributes": [
    {
      "name": "sample string 1",
      "value": "sample string 2"
    },
    {
      "name": "sample string 1",
      "value": "sample string 2"
    }
  ]
}

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.