Path parameters:
-
{mapUid}
(string) The UID of the map *
Service provided by Openplanet
Set map vote
Audience: NadeoServices
POST
https://prod.trackmania.core.nadeo.online/maps/{mapUid}/votes
Path parameters:
{mapUid}
(string)
The UID of the map
*
The request body contains the vote value:
{
"vote": 1
}
Sets a like/dislike vote for a map as the currently authenticated user.
Remarks:
vote
field can be set to -1
for a dislike, or 1
for a like. 0
can be used to unset the vote.Example request:
POST https://prod.trackmania.core.nadeo.online/maps/ytKTrmjtk352Ou_7IE3xHWhyj2a/votes
{
"vote": 1
}
Example response:
null
If the mapUid
is invalid, the response will contain an error message:
{
"code": "C-AA-00-03",
"correlation_id": "127bd2d9070bad276a1422d9268c2d10",
"message": "There was a validation error.",
"info": [
"mapUid: This value is too long. It should have 27 characters or less."
]
}