Skip to main content

POST /cards/{cardId}/vote

Description

Adds a new vote to the card and returns a json object with the voting user ID

The route handles the HTTP POST request made to the /cards/{cardId}/vote path.

Payload

No payload is required.

Response

The route returns a json object with the voting user ID.

Example:

{ 
"id": 1
}

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: Working with server