Topics Comments
Get comments
Section titled “ Get comments ” GET
v3/projects/23423233/topics/25299755/comments?start=0&limit=100
returns comments for the specified discussion topic.
Results are returned according to the supplied
start and limit values.
[
{
"id": 25299972,
"description": "Very informative with plenty of examples of good and not-so-good Web marketing",
"proofed": false,
"creator": {
"id": 12009183
},
"topic": {
"id": 25299755
},
"attachments": null
},
{
"id": 25299973,
"description": "This was a nice discovery session. I got lots of ideas for marketing on the Web.",
"proofed": false,
"creator": {
"id": 12009183
},
"topic": {
"id": 25299755
},
"attachments": [
{
"id": 50085572,
"name": "sample.jpg",
"file_type": "jpg"
}
]
}
] Get comment
Section titled “ Get comment ” GET
v3/projects/23423233/topics/25299755/comments/25299972
returns the specified discussion comment.
{
"id": 25299972,
"description": "Very informative with plenty of examples of good and not-so-good Web marketing",
"proofed": false,
"creator": {
"id": 12009183
},
"topic": {
"id": 25299755
},
"attachments": null
} Create comment
Section titled “ Create comment ” POST
v3/projects/23423233/topics/25299755/comments
creates a new comment on the specified discussion topic.
{
"description": "The seminar was very user-friendly. Provided very specific and useful info"
} 201 Created is returned along with the created comment.
403 Forbidden is returned if access is denied.
Attaching files
Section titled “ Attaching files ”Files can be attached to discussion comments using attachment IDs obtained from the Attachments API.
{
"description": "The seminar was very user-friendly. Provided very specific and useful info",
"attachments": [
{
"id": 123456
}
]
} Multiple attachments are supported. Attachment IDs must be generated through the Attachments API before creating the comment.
Update comment
Section titled “ Update comment ” PUT
v3/projects/23423233/topics/25299755/comments/25299972
updates the specified discussion comment.
{
"description": "The seminar was very user-friendly, provided very specific and useful info."
} 200 OK is returned along with the updated comment.
403 Forbidden is returned if access is denied.
Delete comment
Section titled “ Delete comment ” DELETE
v v3/projects/23423233/topics/25299755/comments/25299972
deletes the specified discussion comment.
Deleting a discussion comment is permanent and cannot be undone.
204 No Content is returned if the comment is deleted successfully.
403 Forbidden is returned if access is denied.