Edit club news article

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

Headers:


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
    Maximum: 20 characters
  • {headline} string The headline of the news article, displayed below the name
    Maximum: 40 characters
  • {body} string The news article body
    Maximum: 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:

  • 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.
  • The 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"
]