Comment in a forum thread
Post a comment in a forum thread, or reply to a comment.
POST https://cotlet.dev/api/v1/anilist/threads/{thread_id}/comment
write Confirm
Posts publicly in the thread and notifies people who subscribed to it. Returns the comment ID. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| thread_id integer required | integer | Thread ID from list_forum_threads. |
| comment string required | string | Comment text in markdown, 1 to 12000 characters. |
| parent_comment_id integer | integer | Reply to this comment instead of the thread. |
Request
curl -X POST https://cotlet.dev/api/v1/anilist/threads/1/comment \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"comment":"comment"}' result = client.call("anilist", "post_thread_comment", {"thread_id":1,"comment":"comment"}) const result = await cotlet.call('anilist', 'post_thread_comment', {"thread_id":1,"comment":"comment"}); cotlet call anilist post_thread_comment --data '{"thread_id":1,"comment":"comment"}' Example response
{
"comment_id": 5550123,
"thread_id": 31337,
"posted": true
}