Skip to main content

DELETE /cards/{cardId}/vote

Description

This endpoint removes a vote from a specified card and responds with a JSON object containing the user ID who removed the vote.

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

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 is necessary for this request.

Response

The response returns a JSON object with the user ID that removed the vote.

Example:

{ 
"id": 1
}

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


Related articles: Working with server