Skip to main content

Handle Create Vote

Allows the client to vote on a message.

Path Parameters
message_id Message Id REQUIRED
Request Body REQUIRED
score Score REQUIRED
Responses
200

Successful Response

Schema OPTIONAL
undefined
422

Validation Error

Schema OPTIONAL
detail object[] OPTIONAL
loc undefined[]
msg Message
type Error Type
handle_create_vote_chats__chat_id__messages__message_id__votes_post
POST /chats/:chat_id/messages/:message_id/votes
message_id — path
Body
Loading...
curl -L -X POST 'https://andrewm4894.github.io/chats/:chat_id/messages/:message_id/votes' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'