Edit club member

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

Headers:


Path parameters:

  • {clubId} integer The ID of the club the members belongs to *
  • {accountId} integer The account ID of the club member *

Body parameters:

  • {role} string The new role of the member in the club

The request body is an object containing the member details:

{
  "role": role
}

Edits a member in the club.


Remarks:

  • This endpoint is only useful with tokens authenticated through Ubisoft user accounts (as opposed to dedicated server accounts).
  • The role parameter supports three roles: Member ("Member"), Content Creator ("Content Creator"), and Admin ("Admin").
  • For more information about member roles, including their permissions, read the Club Organisation page in the Trackmania wiki.

Example request:

POST https://live-services.trackmania.nadeo.live/api/token/club/103034/member/5b4d42f4-c2de-407d-b367-cbff3fe817bc/edit
{
  "role": "Admin"
}

Example response:

{
  "creationTimestamp": 1771820894,
  "accountId": "5b4d42f4-c2de-407d-b367-cbff3fe817bc",
  "clubId": 131063,
  "moderator": false,
  "vip": true,
  "hasFeatured": false,
  "useTag": false,
  "pin": false,
  "role": "Admin"
}

If the accountID is invalid or does not belong to a member of the club, the response will contain an error:

[
  "clubMember:error-notFound"
]

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 manage members, the response will contain an error:

[
  "clubMemberRole:error-notAdmin"
]

If trying to set a member's role to "Creator", the response will contain an error:

[
  "role:error-creatorForbidden"
]

if the role parameter is invalid, the response will contain an error:

[
  "role:error-inArray"
]