headless lms

Reply to a course comment from the moderation queue

POST /api/comments/{commentId}/replies. Reply to a course comment from the moderation queue. Headless LMS Discussion API reference.

POST
/api/comments/{commentId}/replies

Requires courses:moderate. Needed on the comment's course. Replies nest one level: answering a reply attaches to its root comment.

Path Parameters

commentId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/comments/string/replies" \  -H "Content-Type: application/json" \  -d '{    "body": "string"  }'
{  "id": "string",  "activityId": "string",  "postId": "string",  "communityId": "string",  "parentId": "string",  "author": {    "id": "string",    "firstName": "string",    "lastName": "string",    "displayName": "string",    "headline": "string",    "image": "string",    "imageAssetId": "string",    "imageUrl": "string",    "team": true,    "roleName": "string"  },  "body": "string",  "status": "pending",  "removedBy": {    "id": "string",    "firstName": "string",    "lastName": "string",    "displayName": "string",    "headline": "string",    "image": "string",    "imageAssetId": "string",    "imageUrl": "string",    "team": true,    "roleName": "string"  },  "reactions": {    "property1": 0,    "property2": 0  },  "viewerReaction": "string",  "mentions": [    {      "orgUserId": "string",      "name": "string"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
{  "error": "string",  "message": "string",  "requestId": "string",  "issues": [    {      "path": "string",      "message": "string"    }  ]}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}