Forum APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
This api is used to fetch tags from nodebb.
/tags
{"value":"learning","score":1,"valueEscaped":"learning","color":"#FFF","bgColor":"#EEE"}
This api allow the user to get the forum id
/forum/v2/read
{"identifier":"identifier","type":"type","cid":0}
successful operation
This api allow the user to attaching category id with a context
/forum/v3/create
{"forums":[{"sbType":"batch","sbIdentifier":"01307806402750054416","newCid":580,"cids":[580]}],"groups":[{"name":"registered-users","members":[{"uid":29,"userName":"content_reviewer_tn1970","sbUid":"08631a74-4b94-4cf7-a818-831135248a4a"}]}],"subcategories":[{"name":"Annoucements","cid":581,"pid":580,"groups":[{"name":"registered-users","members":[{"uid":29,"userName":"content_reviewer_tn1970","sbUid":"08631a74-4b94-4cf7-a818-831135248a4a"}]}]}]}
successful operation
This api allow the user to remove forum id
/forum/v2/remove
{"id":"api.forum.v2.remove","ver":"1.0","ets":1618421469097,"params":{"resmsgid":"01d3023f-e68f-4e5a-84dc-e67aa69dfd48","msgid":"","status":"Success"},"responseCode":"OK","result":"Forum remove for context success"}
successful operation
This api allow the user to get nodebb id bypassing sunbird id
/forum/v2/uids
{"id":".api.forum.v2.uids","ver":"1.0","ets":1618428120524,"params":{"resmsgid":"3bf46d2d-6dd4-49e5-a2e7-6b7fa16101b3","msgid":"","status":"Success"},"responseCode":"OK","result":{"userIds":[{"nodebbUid":29,"sbUid":"08631a74-4b94-4cf7-a818-831135248a4a"}]}}
successful operation
This api allow the user to get nodebb users added for a category
/forum/v3/groups/users
successful operation
This api allow the user to add sunbird users into nodebb group
/forum/v3/groups/membership
successful operation
This api allow the user to get context based tags
/forum/tags
successful operation
This api allow the user to get nodebb privileges added for a category
/forum/v3/category/{cid}/privileges
successful operation
This api allow the user to get all the details of category based on tag name and cid mentioned in array from nodebb
/tags/list
{"unread-class":"unread-class","template":{},"privileges":{},"pagination":{},"color":"color","numRecentReplies":5,"icon":"icon","link":"link","_header":{},"description":"description","title":"title","widgets":{},"showSelect":true,"totalTopicCount":7,"parentCid":2,"maxTags":2,"totalPostCount":4,"bgColor":"bgColor","descriptionParsed":"descriptionParsed","children":[{},{}],"bodyClass":"bodyClass","disabled":6,"rssFeedUrl":"rssFeedUrl","tagWhitelist":["tagWhitelist","tagWhitelist"],"class":"class","slug":"slug","order":5,"minTags":3,"showTopicTools":true,"topics":[{"pinned":6,"lastposttime":1,"upvotes":8,"unreplied":true,"unread":true,"timestampISO":"timestampISO","title":"title","teaserPid":{},"tid":7,"uid":4,"lastposttimeISO":"lastposttimeISO","deleterUid":6,"isOwner":true,"mainPid":1,"locked":9,"slug":"slug","timestamp":1,"ignored":true,"index":6,"downvotes":9,"icons":{},"tags":{},"bookmark":{},"deleted":9,"postcount":6,"viewcount":5,"titleRaw":"titleRaw","votes":3,"category":{},"user":{},"cid":1,"teaser":{}},{"pinned":6,"lastposttime":1,"upvotes":8,"unreplied":true,"unread":true,"timestampISO":"timestampISO","title":"title","teaserPid":{},"tid":7,"uid":4,"lastposttimeISO":"lastposttimeISO","deleterUid":6,"isOwner":true,"mainPid":1,"locked":9,"slug":"slug","timestamp":1,"ignored":true,"index":6,"downvotes":9,"icons":{},"tags":{},"bookmark":{},"deleted":9,"postcount":6,"viewcount":5,"titleRaw":"titleRaw","votes":3,"category":{},"user":{},"cid":1,"teaser":{}}],"isNotWatched":true,"reputation:disabled":2,"isWatched":true,"isIgnored":true,"topic_count":9,"url":"url","imageClass":"imageClass","feeds:disableRSS":1,"loggedIn":true,"name":"name","isSection":1,"post_count":7,"relative_path":"relative_path","breadcrumbs":[{},{}],"cid":0}
This api allow the user to copy all privileges from one category to another category.
/privileges/v2/copy
{"id":"api.forum.v2.remove","ver":"1.0","ets":1618421469097,"params":{"resmsgid":"01d3023f-e68f-4e5a-84dc-e67aa69dfd48","msgid":"","status":"Success"},"responseCode":"OK","result":"Privileges copied successfuly"}