deleteDiscussion
- Home
- Commenting
- UgcDiscussion
- deleteDiscussion
deleteDiscussion
Delete the requested discussion and all of its comments.
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=deleteDiscussion&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":"deleteDiscussion", "code":1, "message":"Discussion has been deleted", "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":"deleted", "permissions":1073718561, "isPublic":1, "numViews":0, "rating":"0" } } |
Service Information
Service | ugcDiscussion |
Method | deleteDiscussion |
Type | REST |
Response Types | JSON, XML |