Accept a team join request
Accept one person's request to join a team you lead.
POST https://cotlet.dev/api/v1/lichess/teams/{team_id}/join-request/accept
write Confirm
Adds the applicant to the team and returns ok. Needs a team leader role. The applicant becomes a member of the team, so it reaches another person. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| team_id string required | string | Team ID from list_user_teams, e.g. 'coders' for lichess.org/team/coders. |
| username string required | string | Applicant username from list_team_join_requests. |
Request
curl -X POST https://cotlet.dev/api/v1/lichess/teams/coders/join-request/accept \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"username"}' result = client.call("lichess", "accept_team_join_request", {"team_id":"coders","username":"username"}) const result = await cotlet.call('lichess', 'accept_team_join_request', {"team_id":"coders","username":"username"}); cotlet call lichess accept_team_join_request --data '{"team_id":"coders","username":"username"}' Example response
{
"ok": true,
"team_id": "riverside-chess",
"username": "maya_plays",
"members": 149
}