githubEdit

Topic APIs

Get unread topics

get

This api allow the user to get all the unread topics in nodebb

Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
get
/discussion/unread

Get recent topics

get

This api allow the user to get all the recent topics in nodebb

Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
get
/discussion/recent
get

This api allow the user to get all the popular topics in nodebb

Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
get
/discussion/popular

Get teaser of topic

get

This api allow the user to get teaser details of topic in nodebb

Path parameters
topic_idintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
get
/discussion/topic/teaser/{topic_id}

Get topics details

get

This api allow the user to get topics details by using topicId ad slug from nodebb

Path parameters
topic_idintegerRequired
slugstringRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
get
/discussion/topic/{topic_id}/{slug}

Create new topic

post

This api allow the user to create new topic in nodebb

Header parameters
AuthorizationstringRequired
Body
cidintegerRequired
titlestringRequired
contentstringRequired
Responses
chevron-right
200

successful operation

application/json
post
/discussion/v2/topics

Delete a topic (Soft delete)

put

This api allow the user to delete a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
put
/discussion/v2/topics/{tid}/state

Follow a topic

put

This api allow the user to follow a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
put
/discussion/v2/topics/{tid}/follow

UnFollow a Post

delete

This api allow the user to unfollow a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
delete
/discussion/v2/topics/{tid}/follow

Add tags for a topic

put

This api allow the user to add tags to a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Bodystring[]
string[]Optional
Responses
chevron-right
200

successful operation

application/json
put
/discussion/v2/topics/{tid}/tags

Delete tags for a topic

delete

This api allow the user to delete tags for a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
delete
/discussion/v2/topics/{tid}/tags

Pin a topic

put

This api allow the user to pin to a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Bodystring[]
string[]Optional
Responses
chevron-right
200

successful operation

application/json
put
/discussion/v2/topics/{tid}/pin

Unpin a topic

delete

This api allow the user to unpin a topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
delete
/discussion/v2/topics/{tid}/pin

Updates topic details

put

This api allow the user to update topic details in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Body
pidintegerRequired
contentstringRequired
handlestringOptional
titlestringOptional
topic_thumbintegerOptional
tagsstring[]Optional
Responses
chevron-right
200

successful operation

application/json
put
/discussion/v2/topics/{tid}

Create new reply to topic

post

This api allow the user to create new reply to topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Body
contentstringRequired
toPidintegerOptional
Responses
chevron-right
200

successful operation

application/json
post
/discussion/v2/topics/{tid}

delete topic

delete

This api allow the user to delete topic in nodebb

Path parameters
tidintegerRequired
Header parameters
AuthorizationstringRequired
Responses
chevron-right
200

successful operation

application/json
delete
/discussion/v2/topics/{tid}

Last updated

Was this helpful?