Skip to main content

DELETE /cards/{cardId}/vote

Description

Removes a vote from a card and returns a json object with a user ID that removes a vote

This route processes an HTTP DELETE request sent to /cards/{cardId}/vote.

Path parameters

The following parameter is included in the request URL:

NameTypeDescription
cardIdnumberRequired. The ID of the card from which the vote will be removed.

Payload

No payload needs to be sent.

Response

The response is a JSON object containing the user ID of the person who removed their vote.

Example:

{ 
"id": 1
}

The HTTP status code indicates whether the request was successful (response.status == 200) or if an error occurred (response.status == 500).


Related articles: Working with server