GET ​/api​/v3​/vote​/:id

Retrieve a vote by ID.

Response

Example Response

{
  "vote": {
    "id": {
    },
    "owner_id": {
    },
    "owner_type": {
    },
    "track_id": {
    },
    "up": true
  }
}

Response Parameters

  • vote: The vote object to create.

    • Required: yes
    • id: The unique identifier for the vote.
      • Required: yes
      • Type: Integer
      • Example: 1
    • owner_id: The owner ID for the user casting the vote.
      • Required: yes
      • Type: Integer
      • Example: 1
    • owner_type: The polymorphic owner type. Can be Account or GuestAccount.
      • Required: yes
      • Type: String
      • Example: Account
    • track_id: The track ID to vote for.
      • Required: yes
      • Type: Integer
      • Example: 1
    • up: If this is an up vote. Default is true. False indicates a down vote.
      • Required: yes
      • Type: boolean
      • Example: true

Response Codes

Successful Response Codes

  • 200: The request was successful.

Failure Response Codes

  • 404: Indicates the vote could not be found.