Post APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
This api allows the user to delete post in the nodebb
/v2/posts/{pid}
{"code":"code","payload":{}}
This api allows the user to delete vote(Up/down) to post in the nodebb
/v2/posts/{pid}/vote
{"code":"code","payload":{}}
This api allows the user to bookmarks a post in the nodebb
/v2/posts/{pid}/bookmark
{"code":"code","payload":{}}
This api allows the user to Unbookmarks a post in the nodebb
/v2/posts/{pid}/bookmark
{"code":"code","payload":{}}
This api allows the user to Restores a post in the nodebb
/v2/posts/{pid}/state
{"code":"code","payload":{}}
This api allows the user to vote(Up/down) to post in the nodebb
/v2/posts/{pid}/vote
delta must be a number. If delta > 0, it's considered an upvote; if delta < 0, it's considered a downvote; otherwise, it's an unvote.
{"code":"code","payload":{}}
This api allows the user to Deletes a post in the nodebb
/v2/posts/{pid}/state
{"code":"code","payload":{}}
This api allow the user to create new post to topic in nodebb
/v2/topics/{tid}
{"code":"code","payload":{"topicData":{"pinned":4,"lastposttime":6,"upvotes":7,"unreplied":6,"mainPost":{},"unread":true,"timestampISO":"timestampISO","title":"title","teaserPid":{},"tid":5,"uid":7,"lastposttimeISO":"lastposttimeISO","deleterUid":1,"isOwner":true,"mainPid":1,"locked":2,"slug":"slug","timestamp":2,"ignored":true,"downvotes":1,"icons":{},"tags":{},"bookmark":{},"deleted":3,"postcount":5,"viewcount":9,"titleRaw":"titleRaw","votes":1,"category":{},"user":{},"cid":0,"teaser":{}},"postData":{"isMain":true,"bookmarked":true,"selfPost":true,"index":9,"pid":7,"timestampISO":"timestampISO","display_edit_tools":true,"tid":4,"content":"content","uid":1,"display_moderator_tools":true,"display_move_tools":true,"topic":{},"votes":6,"display_delete_tools":true,"user":{},"timestamp":5,"cid":9}}}
This api allow the user to create reply to post in nodebb
/v2/topics/{tid}
{"code":"code","payload":{"topicData":{"pinned":4,"lastposttime":6,"upvotes":7,"unreplied":6,"mainPost":{},"unread":true,"timestampISO":"timestampISO","title":"title","teaserPid":{},"tid":5,"uid":7,"lastposttimeISO":"lastposttimeISO","deleterUid":1,"isOwner":true,"mainPid":1,"locked":2,"slug":"slug","timestamp":2,"ignored":true,"downvotes":1,"icons":{},"tags":{},"bookmark":{},"deleted":3,"postcount":5,"viewcount":9,"titleRaw":"titleRaw","votes":1,"category":{},"user":{},"cid":0,"teaser":{}},"postData":{"isMain":true,"bookmarked":true,"selfPost":true,"index":9,"pid":7,"timestampISO":"timestampISO","display_edit_tools":true,"tid":4,"content":"content","uid":1,"display_moderator_tools":true,"display_move_tools":true,"topic":{},"votes":6,"display_delete_tools":true,"user":{},"timestamp":5,"cid":9}}}