Skip to main content

Forums

Create a Post in Forum

Use this API to create a forum post.

 POST /forum/{enrollmentId}/create

Path parameters

FieldTypeDescription
enrollmentId
required
integerEnrollment ID

Request body parameters

FieldTypeDescription
title
required
stringForum title
description
required
stringForum description
notifyWhenReplied
required
integerNotify when someone replies, 1-yes, 0-no
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"forumId": 91
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}

Reply to a Post in Forum

Use this API to reply to a post in forum.

 POST /forum/reply/{enrollmentId}/{forumId}

Path parameters

FieldTypeDescription
enrollmentId
required
integerEnrollment ID
forumId
required
integerForum ID

Request body parameters

FieldTypeDescription
description
required
stringText of the forum post
replyIdintegerID of the Post to which you want to reply.
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": true,
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}

List all Posts in a Forum

Use this API to get the list of all posts in a forum for an individual enrollment. This does not include replies within a post.

 GET /forum/{enrollmentId}/list

Path parameters

FieldTypeDescription
enrollmentId
required
integerEnrollment ID

Query string parameters

FieldTypeDescription
firstRecord
required
integerFirst record to return. Default: 1
count
required
integerNumber of records to be returned starting from the first record. Default: 20, Max count limit: 50
qstringFilter data by title, description.
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"forumList": [
{
"forumId": 91,
"createdDate": "2023-08-16 17:00:23",
"title": "My First Post",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"createdBy": "Pooja G",
"selfPosted": true,
"replyCount": 0
},
{
"forumId": 87,
"createdDate": "2023-06-13 15:55:12",
"title": "Recent Learnings",
"description": "Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"createdBy": "Rajesh Kumar",
"selfPosted": false,
"replyCount": 2
}
],
"totalRecords": 12
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}

View Forum Details

Use this API to get an individual forum post and all it's replies.

 GET /forum/detail/{enrollmentId}/{forumId}

Path parameters

FieldTypeDescription
enrollmentId
required
integerEnrollment ID
forumId
required
integerForum ID
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"forum": {
"forumId": 64,
"createdDate": "2023-03-31 19:02:46",
"title": "Recent Learnings",
"description": "Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ",
"createdBy": "Pooja G",
"selfPosted": true,
"replyCount": 1,
"notifyWhenReplied": false,
"createdByEmail": "pooja@horizzon.com"
},
"replyList": [
{
"replyId": 351,
"comment": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
"replyedBy": "John Doe",
"replyedDate": "2023-06-13 15:55:32",
"replyCount": 0,
"selfReplied": false
}
]
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}

Update a Forum Post

Use this API to update a forum post.

 PUT /forum/{forumId}/update

Path parameters

FieldTypeDescription
forumId
required
integerForum ID

Request body parameters

FieldTypeDescription
titlestringForum title
descriptionstringForum description
notifyWhenRepliedintegerParameter to notify when someone replies, 1-yes, 0-no
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": true,
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}

Delete a Forum Post

Use this API to delete a forum post or a reply to a forum post.

 DELETE /forum/detail/{enrollmentId}/{forumId}

Path parameters

FieldTypeDescription
enrollmentId
required
integerEnrollment ID
forumId
required
integerForum ID

Request body parameters

FieldTypeDescription
replyIdintegerID of the Post you want to Delete.
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": true,
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}