POST api/OrdersApproval/IndentOrderApproval

Request Information

URI Parameters

None.

Body Parameters

CMMI_ApprovalModels
NameDescriptionTypeAdditional information
CMMIA_Id

integer

None.

CMMIA_MI_Id_FK

integer

Required

CMMIA_Approval

character

Required

CMMIA_ApprovalDate

date

None.

CMMIA_Note

string

Required

Max length: 500

WarehouseSpeedSearch

WarehouseSpeedSearchModels

None.

CMMIA_UserId_FK

integer

None.

CMMIA_TS

date

None.

CMMIA_Inactive

character

None.

CMMIA_TS_LastEdited

date

None.

CMMIA_TS_Edited_Uid_FK

integer

None.

OrderType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CMMIA_Id": 1,
  "CMMIA_MI_Id_FK": 2,
  "CMMIA_Approval": "A",
  "CMMIA_ApprovalDate": "2019-05-26T18:51:49.8348808+05:30",
  "CMMIA_Note": "sample string 5",
  "WarehouseSpeedSearch": {
    "WH_Id": 1,
    "WH_Code": "sample string 2",
    "WH_Name": "sample string 3"
  },
  "CMMIA_UserId_FK": 6,
  "CMMIA_TS": "2019-05-26T18:51:49.8348808+05:30",
  "CMMIA_Inactive": "A",
  "CMMIA_TS_LastEdited": "2019-05-26T18:51:49.8348808+05:30",
  "CMMIA_TS_Edited_Uid_FK": 10,
  "OrderType": "sample string 11"
}

application/xml, text/xml

Sample:
<CMMI_ApprovalModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CMMIA_Approval>65</CMMIA_Approval>
  <CMMIA_ApprovalDate>2019-05-26T18:51:49.8348808+05:30</CMMIA_ApprovalDate>
  <CMMIA_Id>1</CMMIA_Id>
  <CMMIA_Inactive>65</CMMIA_Inactive>
  <CMMIA_MI_Id_FK>2</CMMIA_MI_Id_FK>
  <CMMIA_Note>sample string 5</CMMIA_Note>
  <CMMIA_TS>2019-05-26T18:51:49.8348808+05:30</CMMIA_TS>
  <CMMIA_TS_Edited_Uid_FK>10</CMMIA_TS_Edited_Uid_FK>
  <CMMIA_TS_LastEdited>2019-05-26T18:51:49.8348808+05:30</CMMIA_TS_LastEdited>
  <CMMIA_UserId_FK>6</CMMIA_UserId_FK>
  <OrderType>sample string 11</OrderType>
  <WarehouseSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:WH_Code>sample string 2</d2p1:WH_Code>
    <d2p1:WH_Id>1</d2p1:WH_Id>
    <d2p1:WH_Name>sample string 3</d2p1:WH_Name>
  </WarehouseSpeedSearch>
</CMMI_ApprovalModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.