PUT api/cost/charge/{charge_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
charge_id

integer

Required

Body Parameters

md_cost_charge_cu
NameDescriptionTypeAdditional information
charge_name

string

None.

unit

string

None.

amount

integer

None.

set_material

boolean

None.

set_package

boolean

None.

set_charges

boolean

None.

remark

string

None.

Request Formats

application/json, text/json

Sample:
{
  "charge_name": "sample string 1",
  "unit": "sample string 2",
  "amount": 3,
  "set_material": true,
  "set_package": true,
  "set_charges": true,
  "remark": "sample string 7"
}

application/xml, text/xml

Sample:
<md_cost_charge_cu xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Cost">
  <amount>3</amount>
  <charge_name>sample string 1</charge_name>
  <remark>sample string 7</remark>
  <set_charges>true</set_charges>
  <set_material>true</set_material>
  <set_package>true</set_package>
  <unit>sample string 2</unit>
</md_cost_charge_cu>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.