POST api/user/subscription/add

Request Information

URI Parameters

None.

Body Parameters

AdduserSubscriptionViewModel
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

IsSubscribed

boolean

None.

SubscriptionType

string

None.

SubscriptionStartDate

string

None.

SubscriptionEndDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "3bf68761-195e-4fdb-87b1-1cf282492d77",
  "IsSubscribed": true,
  "SubscriptionType": "sample string 2",
  "SubscriptionStartDate": "sample string 3",
  "SubscriptionEndDate": "sample string 4"
}

text/html

Sample:
{"UserId":"3bf68761-195e-4fdb-87b1-1cf282492d77","IsSubscribed":true,"SubscriptionType":"sample string 2","SubscriptionStartDate":"sample string 3","SubscriptionEndDate":"sample string 4"}

application/xml, text/xml

Sample:
<AdduserSubscriptionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SingersBabel.BAL.ViewModel">
  <IsSubscribed>true</IsSubscribed>
  <SubscriptionEndDate>sample string 4</SubscriptionEndDate>
  <SubscriptionStartDate>sample string 3</SubscriptionStartDate>
  <SubscriptionType>sample string 2</SubscriptionType>
  <UserId>3bf68761-195e-4fdb-87b1-1cf282492d77</UserId>
</AdduserSubscriptionViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.