POST api/Chain

Request Information

URI Parameters

None.

Body Parameters

ChainModels
NameDescriptionTypeAdditional information
C_Id

integer

None.

C_Code

string

None.

C_Name

string

Required

C_ShortDescription

string

Required

C_Note

string

Required

C_StockTransfer

string

Required

C_UserId_FK

integer

None.

C_TS

date

None.

C_Inactive

character

None.

C_TS_LastEdited

date

None.

C_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "C_Id": 1,
  "C_Code": "sample string 2",
  "C_Name": "sample string 3",
  "C_ShortDescription": "sample string 4",
  "C_Note": "sample string 5",
  "C_StockTransfer": "sample string 6",
  "C_UserId_FK": 7,
  "C_TS": "2019-05-26T18:53:14.1786289+05:30",
  "C_Inactive": "A",
  "C_TS_LastEdited": "2019-05-26T18:53:14.1786289+05:30",
  "C_TS_Edited_Uid_FK": 11
}

application/xml, text/xml

Sample:
<ChainModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <C_Code>sample string 2</C_Code>
  <C_Id>1</C_Id>
  <C_Inactive>65</C_Inactive>
  <C_Name>sample string 3</C_Name>
  <C_Note>sample string 5</C_Note>
  <C_ShortDescription>sample string 4</C_ShortDescription>
  <C_StockTransfer>sample string 6</C_StockTransfer>
  <C_TS>2019-05-26T18:53:14.1786289+05:30</C_TS>
  <C_TS_Edited_Uid_FK>11</C_TS_Edited_Uid_FK>
  <C_TS_LastEdited>2019-05-26T18:53:14.1786289+05:30</C_TS_LastEdited>
  <C_UserId_FK>7</C_UserId_FK>
</ChainModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.