PUT api/Promotion/{id}?hash={hash}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
|
hash | string |
Required |
Body Parameters
PromotionName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Code | string |
None. |
|
Name | string |
None. |
|
Sku | Collection of string |
None. |
|
Discount | decimal number |
None. |
|
ProfileId | integer |
None. |
|
Active | boolean |
None. |
|
DayOfWeekTo | integer |
None. |
|
DayOfWeekFrom | integer |
None. |
|
HourFrom | integer |
None. |
|
HourTo | integer |
None. |
|
Description | string |
None. |
|
Text | string |
None. |
|
DiscountType | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Code": "sample string 2", "Name": "sample string 3", "Sku": [ "sample string 1", "sample string 2" ], "Discount": 4.0, "ProfileId": 1, "Active": true, "DayOfWeekTo": 6, "DayOfWeekFrom": 7, "HourFrom": 8, "HourTo": 9, "Description": "sample string 10", "Text": "sample string 11", "DiscountType": 12 }
text/xml
Sample:
<Promotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MvcWeb.Models.Api"> <Active>true</Active> <Code>sample string 2</Code> <DayOfWeekFrom>7</DayOfWeekFrom> <DayOfWeekTo>6</DayOfWeekTo> <Description>sample string 10</Description> <Discount>4</Discount> <DiscountType>12</DiscountType> <HourFrom>8</HourFrom> <HourTo>9</HourTo> <Id>1</Id> <Name>sample string 3</Name> <ProfileId>1</ProfileId> <Sku xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Sku> <Text>sample string 11</Text> </Promotion>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PromotionName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Code | string |
None. |
|
Name | string |
None. |
|
Sku | Collection of string |
None. |
|
Discount | decimal number |
None. |
|
ProfileId | integer |
None. |
|
Active | boolean |
None. |
|
DayOfWeekTo | integer |
None. |
|
DayOfWeekFrom | integer |
None. |
|
HourFrom | integer |
None. |
|
HourTo | integer |
None. |
|
Description | string |
None. |
|
Text | string |
None. |
|
DiscountType | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Code": "sample string 2", "Name": "sample string 3", "Sku": [ "sample string 1", "sample string 2" ], "Discount": 4.0, "ProfileId": 1, "Active": true, "DayOfWeekTo": 6, "DayOfWeekFrom": 7, "HourFrom": 8, "HourTo": 9, "Description": "sample string 10", "Text": "sample string 11", "DiscountType": 12 }
text/xml
Sample:
<Promotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MvcWeb.Models.Api"> <Active>true</Active> <Code>sample string 2</Code> <DayOfWeekFrom>7</DayOfWeekFrom> <DayOfWeekTo>6</DayOfWeekTo> <Description>sample string 10</Description> <Discount>4</Discount> <DiscountType>12</DiscountType> <HourFrom>8</HourFrom> <HourTo>9</HourTo> <Id>1</Id> <Name>sample string 3</Name> <ProfileId>1</ProfileId> <Sku xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Sku> <Text>sample string 11</Text> </Promotion>