POST api/user/subscription/add
Request Information
URI Parameters
None.
Body Parameters
AdduserSubscriptionViewModelName | Description | Type | Additional 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": "00bbb92b-9f00-456d-b98f-0cf424525d31", "IsSubscribed": true, "SubscriptionType": "sample string 2", "SubscriptionStartDate": "sample string 3", "SubscriptionEndDate": "sample string 4" }
text/html
Sample:
{"UserId":"00bbb92b-9f00-456d-b98f-0cf424525d31","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>00bbb92b-9f00-456d-b98f-0cf424525d31</UserId> </AdduserSubscriptionViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.