POST Airline/Save

Request Information

URI Parameters

None.

Body Parameters

AirlineModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

Code

string

Required

TINNumber

string

Required

BDACode

string

None.

TaxOffice

string

None.

NIBBCode

string

None.

AllowMultisector

boolean

Required

IsDDTEnabled

boolean

Required

BDACustomerId

integer

None.

ReportTypeId

integer

None.

NameAndCode

string

None.

AllowSendToSprite

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Code": "sample string 3",
  "TINNumber": "sample string 4",
  "BDACode": "sample string 5",
  "TaxOffice": "sample string 6",
  "NIBBCode": "sample string 7",
  "AllowMultisector": true,
  "IsDDTEnabled": true,
  "BDACustomerId": 10,
  "ReportTypeId": 11,
  "NameAndCode": "sample string 2 (sample string 3)",
  "AllowSendToSprite": true
}

application/xml, text/xml

Sample:
<AirlineModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Id>1</Id>
  <Name>sample string 2</Name>
  <Code>sample string 3</Code>
  <TINNumber>sample string 4</TINNumber>
  <BDACode>sample string 5</BDACode>
  <TaxOffice>sample string 6</TaxOffice>
  <NIBBCode>sample string 7</NIBBCode>
  <AllowMultisector>true</AllowMultisector>
  <IsDDTEnabled>true</IsDDTEnabled>
  <BDACustomerId>10</BDACustomerId>
  <ReportTypeId>11</ReportTypeId>
  <AllowSendToSprite>true</AllowSendToSprite>
</AirlineModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.