Classic APIs
ClassicGamesApi
authedUserSetUniverseUpvote

authedUserSetUniverseUpvote

Sets the upvote status for a particular universe for the authenticated user.

Parameters

NameTypeDescription
universeIdIdentifierThe ID of the universe to upvote.
upvotebooleanIf the universe is to be upvoted.

Example

const { data: success } = await ClassicGamesApi.authedUserSetUniverseUpvote({ universeId: 1685831367, upvote: true }); 

Endpoint

PATCH /v1/games/${universeId}/user-votes