POST (Header:PUT) api.ashx/v2/forums/{forumid}/threads/{threadid}/subscriptions.{json|xml}
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
IsSubscribed | bool | Request Body | New subscribe state for the thread | Required | ||
threadid | int | Path | Id of thread to subscribe | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums/{forumid}/threads/{threadid}/subscriptions.json', data: { 'threadid': '6', 'IsSubscribed': 'True' } }).then(function(response) { // use response });
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <IsSubscribed>true</IsSubscribed> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>