authedUserUniverseSetFavorite
Sets the favorited status for a particular universe for the authenticated user.
Parameters
Name | Type | Description |
---|---|---|
universeId | Identifier | The ID of the universe to set favorited status for. |
status | boolean | The new status for the favorite. |
Example
const { data: newStatus } = await ClassicGamesApi.authedUserUniverseSetFavorite({
universeId: 1685831367,
status: true,
});
Endpoint
POST /v1/games/{universeId}/favorites