POST api/v2.0/Discussions/UpdateSubscription

Update Discussion Subscription.

Request Information

URI Parameters

None.

Body Parameters

Accepted subscriptionTypes are: Real Time ("Rt"), Daily Digest ("Dd"), No Emails ("Ne")

DiscussionSubscriptionUpdateRequest
NameDescriptionTypeAdditional information
DiscussionKey

globally unique identifier

None.

SubscriptionType

string

None.

Email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DiscussionKey": "97a3fe7f-813e-48ad-9ee7-2930487e2b15",
  "SubscriptionType": "sample string 2",
  "Email": "sample string 3"
}

application/xml, text/xml

Sample:
<DiscussionSubscriptionUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request">
  <DiscussionKey>97a3fe7f-813e-48ad-9ee7-2930487e2b15</DiscussionKey>
  <Email>sample string 3</Email>
  <SubscriptionType>sample string 2</SubscriptionType>
</DiscussionSubscriptionUpdateRequest>

Response Information

Resource Description

True if successful, False if not.

Collection of boolean

Response Formats

application/json, text/json

Sample:
[
  true,
  true
]

application/xml, text/xml

Sample:
<ArrayOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <boolean>true</boolean>
  <boolean>true</boolean>
</ArrayOfboolean>