POST /platform/posts/{post}/comments

Path parameters

  • post integer Required

    id of the post you want to comment

application/json

Body Required

  • content string Required
  • content_strip string Required
  • tagged_everyone boolean

    true: if you want to notify all ambassadors (seller and manager)

  • tagged_ambassadors array[integer]

    ambassadors that will be notified

Responses

  • 201 application/json

    returns the created comment

  • 403

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

  • 404

    Not found - The post does not exist

POST /platform/posts/{post}/comments
curl \
 --request POST 'https://domain.tld/api/v2/platform/posts/{post}/comments' \
 --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","tagged_everyone":true,"tagged_ambassadors":[42]}'
Request examples
{
  "content": "comment with mention {'type':'tag-user', 'content':'@John Doe, 'id':'12'}",
  "content_strip": "comment with mention @John Doe",
  "tagged_everyone": true,
  "tagged_ambassadors": [
    42
  ]
}