POST api/AttributeDefinitions

Request Information

URI Parameters

None.

Body Parameters

AttributeDefinition
NameDescriptionTypeAdditional information
id

integer

None.

code

string

None.

name

string

None.

type

integer

None.

format

integer

None.

values

Collection of AttributeDefinitonElement

None.

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "code": "sample string 2",
  "name": "sample string 3",
  "type": 4,
  "format": 5,
  "values": [
    {
      "value": "sample string 2"
    },
    {
      "value": "sample string 2"
    }
  ],
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<AttributeDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <code>sample string 2</code>
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <format>5</format>
  <id>1</id>
  <name>sample string 3</name>
  <type>4</type>
  <values>
    <AttributeDefinitonElement>
      <id>1</id>
      <value>sample string 2</value>
    </AttributeDefinitonElement>
    <AttributeDefinitonElement>
      <id>1</id>
      <value>sample string 2</value>
    </AttributeDefinitonElement>
  </values>
</AttributeDefinition>

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 'AttributeDefinition'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.