String/Asset Translations

Add Vote

Required scopes: project.translation (Read and Write).

post/projects/{projectId}/votes

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

Request body

mark'up' | 'down' required

Vote type:

  • 'up' — upvote translation
  • 'down' — downvote translation
translationIdinteger required

Translation Identifier. Get via List String Translations

Example request

{
  "mark": "up",
  "translationId": 653412
}

Response

Vote was successfully added

Example response

{
  "data": {
    "id": 6643,
    "user": {
      "id": 19,
      "username": "john_doe",
      "fullName": "John Smith"
    },
    "translationId": 19069345,
    "votedAt": "2019-09-19T12:42:12+00:00",
    "mark": "up"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.