enableDiscussion
- Home
- Commenting
- UgcDiscussion
- enableDiscussion
enableDiscussion
Enable the requested discussion. Allows for both read and write access. Reverses a previous call to suspendDiscussion or disableDiscussion.
Parameters
Name | Description |
nodeID required | Node of content we are working with. |
discussionID optional | Id of discussion (topic_id) to work with. |
ecPartnerID optional | ID of partner for ext_content. |
ecXrefID optional | ID of content for ext_content. |
ecType optional | Type of content for ext_content. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcDiscussion?action=enableDiscussion&nodeID=188234&ecPartnerID=335&ecXrefID=12345678&ecType=web&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
{ "service":"ugcDiscussion", "action":"enableDiscussion", "code":1, "message":"Discussion has been enabled", "item":{ "discussionID":3978127, "nodeID":188234, "numComments":11, "firstCommentID":130552227, "firstCommentTitle":"TEST", "lastCommentID":157882247, "lastCommentDate":"2019-02-07 14:03:53", "lastCommentTitle":"TEST", "lastCommenterID":229928503, "anonymous":0, "starts":null, "expires":null, "createdBy":4686733, "dateCreated":"2012-03-06 12:41:51", "status":"active", "permissions":1073718561, "isPublic":1, "numViews":0, "rating":"0" } } |
Service Information
Service | ugcDiscussion |
Method | enableDiscussion |
Type | REST |
Response Types | JSON, XML |