PUT api/CreditPayments/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CreditPaymentsModelsForEdit
NameDescriptionTypeAdditional information
CP_No_Of_Days

decimal number

Required

CP_TS_LastEdited

date

None.

CP_TS_Edited_Uid_FK

integer

None.

CreditPaymentDetails

Collection of CreditPaymentsDetailsModels

None.

Request Formats

application/json, text/json

Sample:
{
  "CP_No_Of_Days": 1.0,
  "CP_TS_LastEdited": "2019-07-17T04:16:24.5404998+05:30",
  "CP_TS_Edited_Uid_FK": 3,
  "CreditPaymentDetails": [
    {
      "CPD_Id": 1,
      "CPD_CP_Id_FK": 2,
      "CPD_Cheque_No": "sample string 3",
      "CPD_Cheque_Date": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_Cheque_Rec_Date": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_Bank": "sample string 6",
      "CPD_Branch": "sample string 7",
      "CPD_Amount": 8.0,
      "CPD_IsChequePassed": "sample string 9",
      "CPD_UserId_FK": 10,
      "CPD_TS": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_Inactive": "A",
      "CPD_TS_LastEdited": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_TS_Edited_Uid_FK": 14
    },
    {
      "CPD_Id": 1,
      "CPD_CP_Id_FK": 2,
      "CPD_Cheque_No": "sample string 3",
      "CPD_Cheque_Date": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_Cheque_Rec_Date": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_Bank": "sample string 6",
      "CPD_Branch": "sample string 7",
      "CPD_Amount": 8.0,
      "CPD_IsChequePassed": "sample string 9",
      "CPD_UserId_FK": 10,
      "CPD_TS": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_Inactive": "A",
      "CPD_TS_LastEdited": "2019-07-17T04:16:24.5404998+05:30",
      "CPD_TS_Edited_Uid_FK": 14
    }
  ]
}

application/xml, text/xml

Sample:
<CreditPaymentsModelsForEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CP_No_Of_Days>1</CP_No_Of_Days>
  <CP_TS_Edited_Uid_FK>3</CP_TS_Edited_Uid_FK>
  <CP_TS_LastEdited>2019-07-17T04:16:24.5404998+05:30</CP_TS_LastEdited>
  <CreditPaymentDetails>
    <CreditPaymentsDetailsModels>
      <CPD_Amount>8</CPD_Amount>
      <CPD_Bank>sample string 6</CPD_Bank>
      <CPD_Branch>sample string 7</CPD_Branch>
      <CPD_CP_Id_FK>2</CPD_CP_Id_FK>
      <CPD_Cheque_Date>2019-07-17T04:16:24.5404998+05:30</CPD_Cheque_Date>
      <CPD_Cheque_No>sample string 3</CPD_Cheque_No>
      <CPD_Cheque_Rec_Date>2019-07-17T04:16:24.5404998+05:30</CPD_Cheque_Rec_Date>
      <CPD_Id>1</CPD_Id>
      <CPD_Inactive>65</CPD_Inactive>
      <CPD_IsChequePassed>sample string 9</CPD_IsChequePassed>
      <CPD_TS>2019-07-17T04:16:24.5404998+05:30</CPD_TS>
      <CPD_TS_Edited_Uid_FK>14</CPD_TS_Edited_Uid_FK>
      <CPD_TS_LastEdited>2019-07-17T04:16:24.5404998+05:30</CPD_TS_LastEdited>
      <CPD_UserId_FK>10</CPD_UserId_FK>
    </CreditPaymentsDetailsModels>
    <CreditPaymentsDetailsModels>
      <CPD_Amount>8</CPD_Amount>
      <CPD_Bank>sample string 6</CPD_Bank>
      <CPD_Branch>sample string 7</CPD_Branch>
      <CPD_CP_Id_FK>2</CPD_CP_Id_FK>
      <CPD_Cheque_Date>2019-07-17T04:16:24.5404998+05:30</CPD_Cheque_Date>
      <CPD_Cheque_No>sample string 3</CPD_Cheque_No>
      <CPD_Cheque_Rec_Date>2019-07-17T04:16:24.5404998+05:30</CPD_Cheque_Rec_Date>
      <CPD_Id>1</CPD_Id>
      <CPD_Inactive>65</CPD_Inactive>
      <CPD_IsChequePassed>sample string 9</CPD_IsChequePassed>
      <CPD_TS>2019-07-17T04:16:24.5404998+05:30</CPD_TS>
      <CPD_TS_Edited_Uid_FK>14</CPD_TS_Edited_Uid_FK>
      <CPD_TS_LastEdited>2019-07-17T04:16:24.5404998+05:30</CPD_TS_LastEdited>
      <CPD_UserId_FK>10</CPD_UserId_FK>
    </CreditPaymentsDetailsModels>
  </CreditPaymentDetails>
</CreditPaymentsModelsForEdit>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.