Edit a comment
Edit a comment's text, images, or mentions. Every field is optional, but at least one must be given — images and mentions each replace the full existing list, not merge with it.
Only the comment's own original author can edit it — there is no creator or moderator override, matching the dashboard exactly — so actingUserId must resolve to that same author, or the request is rejected. See actingUserId's own description for the exact condition.
Note: unlike this endpoint's create counterpart, commentedBy in the response here is the author's raw member id, not populated with their name or profile picture.
Fails with a 400 if no field is given, or if actingUserId is a creator/team-member account, and with a 403 if it resolves to anyone other than the comment's own author.
External access policy
An API key and an authorized white-label host are required. Both tier and plan requirements are enforced.
These requirements apply to the white-label creator for backend-to-backend access. TagMango platform access is not supported.
-
Plans: Unrestricted.
-
Tiers: Unrestricted.
Authorization
bearer In: header
Path Parameters
Id of the community channel the post belongs to
Id of the post the comment belongs to
Id of the comment
Header Parameters
Host name of the dashboard, ex: mydomain.tagmango.com
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
curl -X PATCH "https://api-prod-new.tagmango.com/api/v1/external/community/channels/61e97c146cf2b4d8c68f3a40/posts/61e97c146cf2b4d8c68f3a4a/comments/61e97c146cf2b4d8c68f3a70" \ -H "x-whitelabel-host: string" \ -H "Content-Type: application/json" \ -d '{}'{
"_id": "string",
"creator": "string",
"channel": "string",
"post": "string",
"commentedBy": "string",
"mentions": [
"string"
],
"repliedComment": "string",
"comment": "string",
"images": [
"string"
],
"totalLikes": 0,
"totalReplies": 0,
"updatedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"isEdited": false
}{
"code": 400,
"type": "Bad Request",
"statusMessage": "BAD_REQUEST",
"success": false,
"message": "Invalid request",
"result": "Invalid request"
}{
"code": 401,
"type": "Unauthorized",
"statusMessage": "UNAUTHORIZED",
"message": "Invalid token",
"result": "Invalid token",
"success": false
}{
"code": 403,
"type": "Forbidden",
"statusMessage": "FORBIDDEN",
"errorCode": "WORKSHOP_MANGO_FORBIDDEN",
"message": "You can not access this api with a TagMango account, only available for whitelabel hosts",
"result": "You can not access this api with a TagMango account, only available for whitelabel hosts",
"success": false
}{
"code": 429,
"type": "Too Many Requests",
"statusMessage": "TOO_MANY_REQUESTS",
"message": "Request limit exceeded. try after 10 seconds",
"result": "Request limit exceeded. try after 10 seconds",
"success": false
}