Updates reactions on a specified comment. Requires authenticated user.

POST /api/v1/comments/{commentId}/reactions

Path parameters

  • commentId string Required

    The unique identifier of the comment to react to.

application/json

Body

The set of reaction identifiers to apply.

array[string] array[string]

Responses

  • 204

    No Content

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • errors object
      Hide errors attribute Show errors attribute object
      • * array[string] Additional properties
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
POST /api/v1/comments/{commentId}/reactions
curl \
 --request POST 'https://crowdparlay.com/api/v1/comments/{commentId}/reactions' \
 --header "Content-Type: application/json" \
 --data '["string"]'
Request examples
[
  "string"
]
Response examples (400)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string",
  "errors": {
    "additionalProperty1": [
      "string"
    ],
    "additionalProperty2": [
      "string"
    ]
  }
}
Response examples (403)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (500)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}