POST offers/restoreOffer
Request Information
URI Parameters
None.
Body Parameters
offersData| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
None. |
|
| offerId | integer |
None. |
|
| offerCode | string |
None. |
|
| offerName | string |
None. |
|
| offerNameAr | string |
None. |
|
| offerNameEn | string |
None. |
|
| offerDetails | string |
None. |
|
| offerDetailsEn | string |
None. |
|
| offerDetailsAr | string |
None. |
|
| countSession | integer |
None. |
|
| offerPrice | decimal number |
None. |
|
| activeDateFrom | string |
None. |
|
| activeDateTo | string |
None. |
|
| date | string |
None. |
|
| branchId | integer |
None. |
|
| imagePath | string |
None. |
|
| offerDeleteStatus | boolean |
None. |
|
| typeSubscriptionId | integer |
None. |
|
| typeSubscriptionNameAr | string |
None. |
|
| typeSubscriptionNameEn | string |
None. |
|
| countOfTypeSubscription | integer |
None. |
|
| language | string |
None. |
|
| page | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"userId": 1,
"offerId": 2,
"offerCode": "sample string 3",
"offerName": "sample string 4",
"offerNameAr": "sample string 5",
"offerNameEn": "sample string 6",
"offerDetails": "sample string 7",
"offerDetailsEn": "sample string 8",
"offerDetailsAr": "sample string 9",
"countSession": 10,
"offerPrice": 11.0,
"activeDateFrom": "sample string 12",
"activeDateTo": "sample string 13",
"date": "sample string 14",
"branchId": 15,
"imagePath": "sample string 16",
"offerDeleteStatus": true,
"typeSubscriptionId": 18,
"typeSubscriptionNameAr": "sample string 19",
"typeSubscriptionNameEn": "sample string 20",
"countOfTypeSubscription": 21,
"language": "sample string 22",
"page": 23
}
application/xml, text/xml
Sample:
<offersData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/spor.Models.offers"> <activeDateFrom>sample string 12</activeDateFrom> <activeDateTo>sample string 13</activeDateTo> <branchId>15</branchId> <countOfTypeSubscription>21</countOfTypeSubscription> <countSession>10</countSession> <date>sample string 14</date> <imagePath>sample string 16</imagePath> <language>sample string 22</language> <offerCode>sample string 3</offerCode> <offerDeleteStatus>true</offerDeleteStatus> <offerDetails>sample string 7</offerDetails> <offerDetailsAr>sample string 9</offerDetailsAr> <offerDetailsEn>sample string 8</offerDetailsEn> <offerId>2</offerId> <offerName>sample string 4</offerName> <offerNameAr>sample string 5</offerNameAr> <offerNameEn>sample string 6</offerNameEn> <offerPrice>11</offerPrice> <page>23</page> <typeSubscriptionId>18</typeSubscriptionId> <typeSubscriptionNameAr>sample string 19</typeSubscriptionNameAr> <typeSubscriptionNameEn>sample string 20</typeSubscriptionNameEn> <userId>1</userId> </offersData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |