POST api/ItemsAttribute

Request Information

URI Parameters

None.

Body Parameters

Attribute
NameDescriptionTypeAdditional information
id

integer

None.

attributeId

integer

None.

objectId

integer

None.

code

string

String length: inclusive between 0 and 20

value

string

Required

String length: inclusive between 0 and 100

copyToTransaction

integer

None.

copyToDelivery

integer

None.

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "attributeId": 2,
  "objectId": 3,
  "code": "sample string 4",
  "value": "sample string 5",
  "copyToTransaction": 6,
  "copyToDelivery": 7,
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<Attribute xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <attributeId>2</attributeId>
  <code>sample string 4</code>
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <copyToDelivery>7</copyToDelivery>
  <copyToTransaction>6</copyToTransaction>
  <id>1</id>
  <objectId>3</objectId>
  <value>sample string 5</value>
</Attribute>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Attribute'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.