Delete club member

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

Headers:


Path parameters:

  • {clubId} integer The ID of the club the player is a member of *
  • {accountId} string The account ID of the member to be deleted *

Deletes a member of a club.


Remarks:

  • This endpoint is only useful with tokens authenticated through Ubisoft user accounts (as opposed to dedicated server accounts).
  • This endpoint can also be used for the authenticated account to leave clubs they do not own.
  • When trying to leave a club the authenticated account is the creator of, the response will still return a 200 response code, but the account will not leave the club.

Example request:

POST https://live-services.trackmania.nadeo.live/api/token/club/383/member/69f31664-4252-48e0-a433-024c49caee8c/delete

Example response:

Club member deleted

If the club or account does not exist, or the player is not a member of the club, the response will contain an error:

[
  "clubMember:error-notFound"
]

If the authenticated account is not an admin in the club and its account ID does not match the accountId parameter, the response will contain an error:

[
  "clubMemberRole:error-notAdmin"
]