Headless LMS

Publish a comment: approves a pending one, restores a removed one

PATCH /api/comments/{commentId}. Publish a comment: approves a pending one, restores a removed one. Headless LMS Discussion API reference.

PATCH
/api/comments/{commentId}

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

curl -X PATCH "https://example.com/api/comments/string" \  -H "Content-Type: application/json" \  -d '{    "status": "published"  }'
{  "id": "string",  "orgId": "string",  "activityId": "string",  "parentId": "string",  "orgUserId": "string",  "body": "string",  "status": "pending",  "removedBy": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}