POST api/Categories

Request Information

URI Parameters

None.

Body Parameters

Category
NameDescriptionTypeAdditional information
id

integer

None.

type

integer

None.

level

integer

None.

parentId

integer

None.

code

string

String length: inclusive between 0 and 20

detailCode

string

String length: inclusive between 0 and 20

description

string

String length: inclusive between 0 and 50

KPIRColumn

integer

None.

vatRate

decimal number

None.

kind

integer

None.

vatSymbol

string

None.

flag

integer

None.

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "type": 2,
  "level": 3,
  "parentId": 4,
  "code": "sample string 5",
  "detailCode": "sample string 6",
  "description": "sample string 7",
  "KPIRColumn": 8,
  "vatRate": 9.0,
  "kind": 10,
  "vatSymbol": "sample string 11",
  "flag": 12,
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <KPIRColumn>8</KPIRColumn>
  <code>sample string 5</code>
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <description>sample string 7</description>
  <detailCode>sample string 6</detailCode>
  <flag>12</flag>
  <id>1</id>
  <kind>10</kind>
  <level>3</level>
  <parentId>4</parentId>
  <type>2</type>
  <vatRate>9</vatRate>
  <vatSymbol>sample string 11</vatSymbol>
</Category>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.