PUT api/MKTH/SettingPromotion/UpdatePromotion/{promotion_id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| promotion_id | integer |
Required |
Body Parameters
m_Promotion_MKTH| Name | Description | Type | Additional information |
|---|---|---|---|
| promotion_name | string |
None. |
|
| start_date | string |
None. |
|
| to_date | string |
None. |
|
| condition | string |
None. |
|
| buy | integer |
None. |
|
| get_free | integer |
None. |
|
| discount | decimal number |
None. |
|
| cash | decimal number |
None. |
|
| groups | Collection of m_customer_group |
None. |
|
| models | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"promotion_name": "sample string 1",
"start_date": "sample string 2",
"to_date": "sample string 3",
"condition": "sample string 4",
"buy": 1,
"get_free": 1,
"discount": 1.1,
"cash": 1.1,
"groups": [
{
"cust_group_id": 1,
"cust_group_name": "sample string 2"
},
{
"cust_group_id": 1,
"cust_group_name": "sample string 2"
}
],
"models": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<m_Promotion_MKTH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.MKTH">
<buy>1</buy>
<cash>1.1</cash>
<condition>sample string 4</condition>
<discount>1.1</discount>
<get_free>1</get_free>
<groups>
<m_customer_group>
<cust_group_id>1</cust_group_id>
<cust_group_name>sample string 2</cust_group_name>
</m_customer_group>
<m_customer_group>
<cust_group_id>1</cust_group_id>
<cust_group_name>sample string 2</cust_group_name>
</m_customer_group>
</groups>
<models xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</models>
<promotion_name>sample string 1</promotion_name>
<start_date>sample string 2</start_date>
<to_date>sample string 3</to_date>
</m_Promotion_MKTH>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.