PUT api/Partner/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PartnerModels
NameDescriptionTypeAdditional information
P_Id

integer

None.

P_Code

string

None.

P_Partner_Name

string

Required

Max length: 100

P_Address

string

None.

P_Partnering_Date

date

None.

P_Note

string

None.

P_File_Upload

string

None.

P_Inactive

string

None.

P_UserId_FK

integer

None.

P_TS

date

None.

P_TS_LastEdited

date

None.

P_TS_Edited_Uid_FK

integer

None.

P_CustomerMinOrderAmountOnline

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "P_Id": 1,
  "P_Code": "sample string 2",
  "P_Partner_Name": "sample string 3",
  "P_Address": "sample string 4",
  "P_Partnering_Date": "2019-10-23T03:43:08.2373201+05:30",
  "P_Note": "sample string 5",
  "P_File_Upload": "sample string 6",
  "P_Inactive": "sample string 7",
  "P_UserId_FK": 8,
  "P_TS": "2019-10-23T03:43:08.2373201+05:30",
  "P_TS_LastEdited": "2019-10-23T03:43:08.2373201+05:30",
  "P_TS_Edited_Uid_FK": 11,
  "P_CustomerMinOrderAmountOnline": 12.0
}

application/xml, text/xml

Sample:
<PartnerModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <P_Address>sample string 4</P_Address>
  <P_Code>sample string 2</P_Code>
  <P_CustomerMinOrderAmountOnline>12</P_CustomerMinOrderAmountOnline>
  <P_File_Upload>sample string 6</P_File_Upload>
  <P_Id>1</P_Id>
  <P_Inactive>sample string 7</P_Inactive>
  <P_Note>sample string 5</P_Note>
  <P_Partner_Name>sample string 3</P_Partner_Name>
  <P_Partnering_Date>2019-10-23T03:43:08.2373201+05:30</P_Partnering_Date>
  <P_TS>2019-10-23T03:43:08.2373201+05:30</P_TS>
  <P_TS_Edited_Uid_FK>11</P_TS_Edited_Uid_FK>
  <P_TS_LastEdited>2019-10-23T03:43:08.2373201+05:30</P_TS_LastEdited>
  <P_UserId_FK>8</P_UserId_FK>
</PartnerModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.