Update a comment

PATCH /platform/comments/{comment}

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)
    • author object
      Hide author attributes Show author attributes object
      • id_ambassador integer(int32)
      • image string(nullable)
      • full_name string
      • username string(nullable)
      • description string
      • status integer(int32)
      • availability string(nullable)
      • unavailable boolean
      • is_absent boolean
      • absent_msg string(nullable)
      • fb_account string(nullable)
      • twitter_account string(nullable)
      • instagram_account string(nullable)
      • linkedIn_account string(nullable)
      • youtube_account string(nullable)
      • online boolean

        true: when last_action_date is less than 5 minutes ago

      • last_action_date string
    • content string(nullable)
    • nb_likes integer(int32)
    • comments array[object]
    • date_created string(date-time)
    • date_timestamp boolean
    • liked boolean
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
  • 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,
  "author": {
    "id_ambassador": 42,
    "image": "string",
    "full_name": "string",
    "username": "string",
    "description": "string",
    "status": 42,
    "availability": "string",
    "unavailable": true,
    "is_absent": true,
    "absent_msg": "string",
    "fb_account": "string",
    "twitter_account": "string",
    "instagram_account": "string",
    "linkedIn_account": "string",
    "youtube_account": "string",
    "online": true,
    "last_action_date": "string"
  },
  "content": "string",
  "nb_likes": 42,
  "comments": [
    {}
  ],
  "date_created": "2025-05-04T09:42:00Z",
  "date_timestamp": true,
  "liked": true
}
Response examples (401)
{
  "message": "Unauthorized."
}