Headers:
-
Authorization: nadeo_v1 t={token}An access token for theNadeoLiveServicesaudience
Service provided by Openplanet
Edit club member
POST
https://live-services.trackmania.nadeo.live/api/token/club/{clubId}/member/{accountId}/edit
Headers:
Authorization: nadeo_v1 t={token}
An access token for the NadeoLiveServices audience
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:
role parameter supports three roles: Member ("Member"), Content Creator ("Content Creator"), and Admin ("Admin").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"
]