Decline a team join request

Decline one person's request to join a team you lead.

POST https://cotlet.dev/api/v1/lichess/teams/{team_id}/join-request/decline

write Confirm

Removes the request from the pending list and moves it to the declined list, which list_team_join_requests returns with declined set to true. Needs a team leader role. The applicant is turned away, so it reaches another person. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decline_team_join_request
NameTypeDescription
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
curl -X POST https://cotlet.dev/api/v1/lichess/teams/coders/join-request/decline \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"username"}'
Python
result = client.call("lichess", "decline_team_join_request", {"team_id":"coders","username":"username"})
Node.js
const result = await cotlet.call('lichess', 'decline_team_join_request', {"team_id":"coders","username":"username"});
CLI
cotlet call lichess decline_team_join_request --data '{"team_id":"coders","username":"username"}'

Example response

JSON

{
  "ok": true,
  "team_id": "riverside-chess",
  "username": "bonus_link_77",
  "status": "declined"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.