POST api/Warehouses

Request Information

URI Parameters

None.

Body Parameters

Warehouse
NameDescriptionTypeAdditional information
id

integer

None.

symbol

string

Required

String length: inclusive between 0 and 20

name

string

String length: inclusive between 0 and 50

symbolInNumbering

string

Required

String length: inclusive between 0 and 5

description

string

String length: inclusive between 0 and 254

type

integer

Range: inclusive between 1 and 3

inactive

integer

Range: inclusive between 0 and 1

defaultPrice

integer

None.

accountingAccount

string

String length: inclusive between 0 and 50

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "symbol": "sample string 2",
  "name": "sample string 3",
  "symbolInNumbering": "sample string 4",
  "description": "sample string 5",
  "type": 6,
  "inactive": 7,
  "defaultPrice": 8,
  "accountingAccount": "sample string 9",
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<Warehouse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <accountingAccount>sample string 9</accountingAccount>
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <defaultPrice>8</defaultPrice>
  <description>sample string 5</description>
  <id>1</id>
  <inactive>7</inactive>
  <name>sample string 3</name>
  <symbol>sample string 2</symbol>
  <symbolInNumbering>sample string 4</symbolInNumbering>
  <type>6</type>
</Warehouse>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.