POST api/v2/items/{itemId}/attributes/value
Create new attribute under the specified item
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| itemId |
Item unique identificator |
string |
Required |
Body Parameters
Attribute object
AttributeValuePost| Name | Description | Type | Additional information |
|---|---|---|---|
| metadata |
Attribute metadata |
AttributeMetaDataSimple |
Required |
| value |
Attribute value |
string |
Required |
| status |
Status (active or not) |
TagvueEntityStatus |
None. |
| entity-id |
Identifying entity-id of the entity, this is expected to be unique |
string |
None. |
Request Formats
application/xml, text/xml
Sample:
<attribute entity-id="sample string 2" xmlns="urn:tagvue:am">
<status>inactive</status>
<meta-data entity-id="sample string 2">
<name>sample string 1</name>
<type>Number</type>
</meta-data>
<value>sample string 1</value>
</attribute>
application/json, text/json
Sample:
{
"metadata": {
"name": "sample string 1",
"type": "Number",
"entity-id": "sample string 2"
},
"value": "sample string 1",
"status": 0,
"entity-id": "sample string 2"
}
Response Information
Resource Description
Returns CREATED (201) if operation was succesfull or BAD REQUEST (400) if received object is invalid
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |