Skip to main content

POST /cards/{cardId}/vote

Description

Adds a new vote to the card and returns a json object with the card 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 a card ID, to which the vote will be added to.

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