PUT api/MKTH/SettingSale/UpdateSale/{sale_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sale_id

integer

Required

Body Parameters

m_sell_mkth
NameDescriptionTypeAdditional information
saleID

integer

None.

sale_type_id

integer

None.

sale_type

string

None.

name

string

String length: inclusive between 0 and 100

email

string

String length: inclusive between 0 and 100

provinces

Collection of m_province

None.

tels

Collection of m_tel

None.

Request Formats

application/json, text/json

Sample:
{
  "saleID": 1,
  "sale_type_id": 2,
  "sale_type": "sample string 3",
  "name": "sample string 4",
  "email": "sample string 5",
  "provinces": [
    {
      "province_id": 1,
      "province": "sample string 2"
    },
    {
      "province_id": 1,
      "province": "sample string 2"
    }
  ],
  "tels": [
    {
      "iso_code": "sample string 1",
      "country_code": "sample string 2",
      "phone_number": "sample string 3"
    },
    {
      "iso_code": "sample string 1",
      "country_code": "sample string 2",
      "phone_number": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<m_sell_mkth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.MKTH">
  <email>sample string 5</email>
  <name>sample string 4</name>
  <provinces>
    <m_province>
      <province>sample string 2</province>
      <province_id>1</province_id>
    </m_province>
    <m_province>
      <province>sample string 2</province>
      <province_id>1</province_id>
    </m_province>
  </provinces>
  <saleID>1</saleID>
  <sale_type>sample string 3</sale_type>
  <sale_type_id>2</sale_type_id>
  <tels>
    <m_tel>
      <country_code>sample string 2</country_code>
      <iso_code>sample string 1</iso_code>
      <phone_number>sample string 3</phone_number>
    </m_tel>
    <m_tel>
      <country_code>sample string 2</country_code>
      <iso_code>sample string 1</iso_code>
      <phone_number>sample string 3</phone_number>
    </m_tel>
  </tels>
</m_sell_mkth>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.