Headers:
-
Authorization: nadeo_v1 t={token}An access token for theNadeoLiveServicesaudience
Creates a room in a club using a dedicated server.
POST
https://live-services.trackmania.nadeo.live/api/token/club/{clubId}
Headers:
Authorization: nadeo_v1 t={token}
An access token for the NadeoLiveServices audience
Path parameters:
{clubId}
integer
The ID of the club where the room should be created
*
Body parameters:
{name}
string
The name of the new room
*
20 characters
{login}
string
The dedicated server username/login
*
{folderId}
integer
The ID of the folder where the room should be created
The request body is an object containing the server details:
{
"name": name,
"login": serverLogin,
"folderId": folderId
}
Remarks:
maps and scriptSettings will likely be empty or contain old info about the server.Example request:
POST https://live-services.trackmania.nadeo.live/api/token/club/114118/room/create-from-server
{
"name": "Test Room",
"login": "tmfast_8",
"folderId": 0
}
Example response:
{
"creationTimestamp": 1789164080,
"clubName": "TMFAST",
"id": 1166614,
"activityId": 1166614,
"campaignId": null,
"name": "Test Room",
"clubId": 114118,
"roomId": null,
"password": false,
"room": {
"id": null,
"scalable": false,
"serverInfo": null,
"scriptSettings": [],
"playerCount": 0,
"serverAccountId": "86b1f036-bb94-4561-8f30-be8d44c19ecc",
"name": "",
"shufflePlaylist": false,
"region": null,
"maps": [],
"script": "TM_Rounds_Online",
"maxPlayers": 32
},
"mediaUrlPngSmall": "",
"mediaUrl": "",
"latestEditorAccountId": "3c1505cd-8a53-4e4e-817c-d808c277e64c",
"nadeo": false,
"mediaUrlPngLarge": "",
"mediaTheme": "",
"popularityLevel": 0,
"creatorAccountId": "3c1505cd-8a53-4e4e-817c-d808c277e64c",
"playerServerLogin": "tmfast_8",
"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 authenticated account does not have enough permissions in the club to create rooms, the response will contain an error:
[
"clubMemberRole:error-notContentCreator"
]
If the login is invalid, the response will contain an error:
[
"serverLogin:error-inArray"
]