POST api/SalesManager/PurchaseOrderApproval

Request Information

URI Parameters

None.

Body Parameters

SMSPO_ApprovalModels
NameDescriptionTypeAdditional information
SMSPOA_Id

integer

None.

SMSPOA_POR_Id_FK

integer

Required

SMSPOA_Approval

character

Required

SMSPOA_ApprovalDate

date

None.

SMSPOA_Note

string

Required

Max length: 500

WarehouseSpeedSearch

WarehouseSpeedSearchModels

Required

SMSPOA_UserId_FK

integer

None.

SMSPOA_TS

date

None.

SMSPOA_Inactive

character

None.

SMSPOA_TS_LastEdited

date

None.

SMSPOA_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SMSPOA_Id": 1,
  "SMSPOA_POR_Id_FK": 2,
  "SMSPOA_Approval": "A",
  "SMSPOA_ApprovalDate": "2019-05-26T00:52:49.4120253+05:30",
  "SMSPOA_Note": "sample string 5",
  "WarehouseSpeedSearch": {
    "WH_Id": 1,
    "WH_Code": "sample string 2",
    "WH_Name": "sample string 3"
  },
  "SMSPOA_UserId_FK": 6,
  "SMSPOA_TS": "2019-05-26T00:52:49.4120253+05:30",
  "SMSPOA_Inactive": "A",
  "SMSPOA_TS_LastEdited": "2019-05-26T00:52:49.4120253+05:30",
  "SMSPOA_TS_Edited_Uid_FK": 10
}

application/xml, text/xml

Sample:
<SMSPO_ApprovalModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <SMSPOA_Approval>65</SMSPOA_Approval>
  <SMSPOA_ApprovalDate>2019-05-26T00:52:49.4120253+05:30</SMSPOA_ApprovalDate>
  <SMSPOA_Id>1</SMSPOA_Id>
  <SMSPOA_Inactive>65</SMSPOA_Inactive>
  <SMSPOA_Note>sample string 5</SMSPOA_Note>
  <SMSPOA_POR_Id_FK>2</SMSPOA_POR_Id_FK>
  <SMSPOA_TS>2019-05-26T00:52:49.4120253+05:30</SMSPOA_TS>
  <SMSPOA_TS_Edited_Uid_FK>10</SMSPOA_TS_Edited_Uid_FK>
  <SMSPOA_TS_LastEdited>2019-05-26T00:52:49.4120253+05:30</SMSPOA_TS_LastEdited>
  <SMSPOA_UserId_FK>6</SMSPOA_UserId_FK>
  <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>
</SMSPO_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 'SMSPO_ApprovalModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.