Headers:
-
Authorization: nadeo_v1 t={token}An access token for theNadeoLiveServicesaudience
Service provided by Openplanet
Edit club news article
POST
https://live-services.trackmania.nadeo.live/api/token/club/{clubId}/news/{activityId}/edit
Headers:
Authorization: nadeo_v1 t={token}
An access token for the NadeoLiveServices audience
Path parameters:
{clubId}
integer
The ID of the club the news article belongs to
*
{activityId}
integer
The activity ID of the news article to be edited
*
Body parameters:
{name}
string
The new name of the news article
20 characters
{headline}
string
The headline of the news article, displayed below the name
40 characters
{body}
string
The news article body
2000 characters
The request body is an object containing the news article details:
{
"name": name,
"headline": headline,
"body": body
}
Edits a news article 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.body field supports text styling, which does not count towards the maximum character length. See the Text Styling documentation for more information about the supported styles and syntax.Example request:
POST https://live-services.trackmania.nadeo.live/api/token/club/103034/news/1006858/edit
{
"name": "My edited news!",
"headline": "Edited news for testing",
"body": "This is me editing the body!"
}
Example response:
{
"creationTimestamp": 1771912390,
"mediaUrlJpgLarge": "",
"mediaUrlJpgMedium": "",
"clubName": "Fort's club",
"id": 1006858,
"name": "My edited news!",
"clubId": 103034,
"mediaUrl": "",
"latestEditorAccountId": "69f31664-4252-48e0-a433-024c49caee8c",
"body": "This is me editing the body!",
"mediaTheme": "",
"creatorAccountId": "69f31664-4252-48e0-a433-024c49caee8c",
"headline": "Edited news for testing",
"mediaUrlJpgSmall": "",
"mediaUrlDds": ""
}
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 news article 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 news articles, the response will contain an error:
[
"clubMemberRole:error-notContentCreator"
]