POST offers/restoreOffer

Request Information

URI Parameters

None.

Body Parameters

offersData
NameDescriptionTypeAdditional information
userId

integer

None.

offerId

integer

None.

offerName

string

None.

offerNameAr

string

None.

offerNameEn

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,
  "offerName": "sample string 3",
  "offerNameAr": "sample string 4",
  "offerNameEn": "sample string 5",
  "offerDetailsEn": "sample string 6",
  "offerDetailsAr": "sample string 7",
  "countSession": 8,
  "offerPrice": 9.0,
  "activeDateFrom": "sample string 10",
  "activeDateTo": "sample string 11",
  "date": "sample string 12",
  "branchId": 13,
  "imagePath": "sample string 14",
  "offerDeleteStatus": true,
  "typeSubscriptionId": 16,
  "typeSubscriptionNameAr": "sample string 17",
  "typeSubscriptionNameEn": "sample string 18",
  "countOfTypeSubscription": 19,
  "language": "sample string 20",
  "page": 21
}

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 10</activeDateFrom>
  <activeDateTo>sample string 11</activeDateTo>
  <branchId>13</branchId>
  <countOfTypeSubscription>19</countOfTypeSubscription>
  <countSession>8</countSession>
  <date>sample string 12</date>
  <imagePath>sample string 14</imagePath>
  <language>sample string 20</language>
  <offerDeleteStatus>true</offerDeleteStatus>
  <offerDetailsAr>sample string 7</offerDetailsAr>
  <offerDetailsEn>sample string 6</offerDetailsEn>
  <offerId>2</offerId>
  <offerName>sample string 3</offerName>
  <offerNameAr>sample string 4</offerNameAr>
  <offerNameEn>sample string 5</offerNameEn>
  <offerPrice>9</offerPrice>
  <page>21</page>
  <typeSubscriptionId>16</typeSubscriptionId>
  <typeSubscriptionNameAr>sample string 17</typeSubscriptionNameAr>
  <typeSubscriptionNameEn>sample string 18</typeSubscriptionNameEn>
  <userId>1</userId>
</offersData>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.