Headers:
-
Authorization: nadeo_v1 t={token}An access token for theNadeoLiveServicesaudience
Service provided by Openplanet
Create club folder
POST
https://live-services.trackmania.nadeo.live/api/token/club/{clubId}/folder/create
Headers:
Authorization: nadeo_v1 t={token}
An access token for the NadeoLiveServices audience
Path parameters:
{clubId}
integer
The ID of the club where the folder should be created
*
Body parameters:
{name}
string
The name of the new folder
*
{folderId}
integer
The ID of the parent folder
The request body is an object containing the name of the club folder and its parent folder's ID:
{
"name": name,
"folderId": folderId,
}
Creates a folder in a club.
Remarks:
.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:
POST https://live-services.trackmania.nadeo.live/api/token/club/103034/folder/create
{
"name": "My maps",
"folderId": 0
}
Example response:
{
"id": 1004355,
"folderId": null,
"public": true,
"activityId": 1004355,
"campaignId": 0,
"name": "My maps",
"clubId": 103034,
"password": false,
"featured": false,
"activityType": "folder",
"mediaUrlPngSmall": "",
"mediaUrl": "",
"latestEditorAccountId": "69f31664-4252-48e0-a433-024c49caee8c",
"editionTimestamp": 1771658680,
"mediaUrlPngLarge": "",
"itemsCount": 0,
"mediaTheme": "",
"position": 0,
"targetActivityId": 1004355,
"externalId": 0,
"creatorAccountId": "69f31664-4252-48e0-a433-024c49caee8c",
"mediaUrlDds": "",
"active": true,
"mediaUrlPngMedium": ""
}
If the club does not exist, the response will contain an error:
[
"activity:error-notFound"
]
If the player does not have enough permissions in the club to create folders, the response will contain an error:
[
"clubMemberRole:error-notContentCreator"
]