Path parameters

  • comment integer Required

    The comment id

application/json

Body Required

  • content string
  • content_strip string

Responses

  • 200 application/json

    returns the updated comment

    Hide response attributes Show response attributes object
    • id_ambassador_post integer(int32)
    • content string(nullable)
    • nb_likes integer(int32)
    • comments array
    • date_created string(date-time)
    • date_timestamp boolean
    • liked boolean
  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Not found - The comment does not exist

PATCH /platform/comments/{comment}
curl \
 --request PATCH 'https://domain.tld/api/v2/platform/comments/{comment}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"content":"comment with mention {'type':'tag-user', 'content':'@John Doe, 'id':'12'}","content_strip":"comment with mention @John Doe"}'
Request examples
{
  "content": "comment with mention {'type':'tag-user', 'content':'@John Doe, 'id':'12'}",
  "content_strip": "comment with mention @John Doe"
}
Response examples (200)
{
  "id_ambassador_post": 42,
  "content": "string",
  "nb_likes": 42,
  "comments": [],
  "date_created": "2025-05-04T09:42:00Z",
  "date_timestamp": true,
  "liked": true
}