Edit club map review activity

POST https://live-services.trackmania.nadeo.live/api/token/club/{clubId}/map-review/{activityId}/edit

Headers:


Path parameters:

  • {clubId} integer The ID of the club where the map review activity should be created *
  • {activityId} integer The activity ID of the map review activity to be edited *

Body parameters:

  • {name} string The new name of the map review activity
    Maximum: 20 characters
  • {timeLimit} integer The maximum time per map, in seconds
    Maximum: 3600
  • {scalable} integer Whether a new server should be created when the map review room is full (1) or not (0)
  • {maxPlayer} integer The maximum number of players allowed in the map review room
    Maximum: 100
  • {allowVoteSkipMap} integer Whether to allow players to start a vote to skip the current map (1) or not (0)
  • {submissionLimitation} integer Whether to allow players to only submit a single track per hour (1) or not (0)

The request body is an object containing the map review details:

{
  "name": name,
  "timeLimit": timeLimit,
  "scalable": scalable,
  "maxPlayer": maxPlayer,
  "allowVoteSkipMap": allowVoteSkipMap,
  "submissionLimitation": submissionLimitation
}

Edits a map review activity in a club.


Remarks:

  • This endpoint is only useful with tokens authenticated through Ubisoft user accounts (as opposed to dedicated server accounts).
  • As of 2024-01-17, this endpoint's response links to .dds media files by default, while several scaled .png/.jpg versions are available using separate fields (see example below for reference). This only applies for custom media files, and not for preset themes.

Example request:

https://live-services.trackmania.nadeo.live/api/token/club/103034/map-review/1008026/edit
{
  "name":"Edited title",
  "timeLimit": 300,
  "scalable": 0,
  "maxPlayer": 48,
  "allowVoteSkipMap":1,
  "submissionLimitation": 1
}

Example response:

{
  "creationTimestamp": 1772060908,
  "clubName": "Fort's club",
  "id": 1008026,
  "scalable": false,
  "public": true,
  "game2webUrl": "https://www.trackmania.com/clubs/103034/track-reviews/1008026",
  "activityId": 1008026,
  "name": "Edited title",
  "clubId": 103034,
  "mediaUrlPngSmall": "",
  "mediaUrl": "",
  "latestEditorAccountId": "69f31664-4252-48e0-a433-024c49caee8c",
  "mapReviewUid": "club_103034_1008026",
  "mediaUrlPngLarge": "",
  "maxPlayer": 48,
  "mediaTheme": "",
  "popularityLevel": 0,
  "submittedMapCount": 0,
  "submissionLimitation": true,
  "creatorAccountId": "69f31664-4252-48e0-a433-024c49caee8c",
  "timeLimit": 300,
  "allowVoteSkipMap": true,
  "mediaUrlDds": "",
  "mediaUrlPngMedium": ""
}

If the club does not exist or the authenticated account is not a member of the club, the response will contain an error:

[
  "clubMemberRole:error-notMember"
]

If the map review activity does not exist, the response will contain an error:

[
  "activity:error-notFound"
]

If the authenticated account does not have enough permissions in the club to edit a map review activity, the response will contain an error:

[
  "clubMemberRole:error-notContentCreator"
]