Send a team update

Send a message to all members of a team you lead.

POST https://cotlet.dev/api/v1/lichess/teams/{team_id}/update

write Confirm

Posts the update to all members and returns ok. You must be a team leader with the Updates permission. It reaches every member of the team at once and cannot be recalled. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_team_update
NameTypeDescription
team_id string required string Team ID from list_user_teams, e.g. 'coders' for lichess.org/team/coders.
message string required string The update text to send to every member.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/lichess/teams/riverside-chess/update \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"Friday Blitz Night starts at 19:00 UTC: https://lichess.org/tournament/Qx7pLm2a. Top three last week: rook_and_roll, maya_plays, club_captain."}'
Python
result = client.call("lichess", "send_team_update", {"team_id":"riverside-chess","message":"Friday Blitz Night starts at 19:00 UTC: https://lichess.org/tournament/Qx7pLm2a. Top three last week: rook_and_roll, maya_plays, club_captain."})
Node.js
const result = await cotlet.call('lichess', 'send_team_update', {"team_id":"riverside-chess","message":"Friday Blitz Night starts at 19:00 UTC: https://lichess.org/tournament/Qx7pLm2a. Top three last week: rook_and_roll, maya_plays, club_captain."});
CLI
cotlet call lichess send_team_update --data '{"team_id":"riverside-chess","message":"Friday Blitz Night starts at 19:00 UTC: https://lichess.org/tournament/Qx7pLm2a. Top three last week: rook_and_roll, maya_plays, club_captain."}'

Example response

JSON

{
  "ok": true,
  "team_id": "riverside-chess",
  "recipients": 148
}

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.