League: Moderation
Issue A League Cooldown
Issue or update a manual cooldown for a league member.
POST
Permission Required
This endpoint requires a league-operator API key bound to this league with thecooldowns league capability, plus the leagueOperatorApi plan feature (api_pro or higher). A free key receives 403 error_api_feature_required.
Access / Membership Rules
You must have a MANAGER or higher role in the league (or be a TeamBattles staff member) to issue a cooldown. If you lack the required access, you’ll receive a403 error.
The {identifier} path parameter is the league slug - the URL-friendly league name (e.g., my-league).
What’s Returned
Issues or updates a manual cooldown for a league member. On success the response is{ "success": true, "cooldownId": "<id>", "timestamp": "<ISO 8601>" }.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | User ID receiving the cooldown. |
cooldownHours | number | Yes | Cooldown length in hours, from 1 to 8760 (integer). |
note | string | No | Optional admin note (up to 500 characters). |
Authorizations
Send your API key as: Authorization: Bearer tb_
Path Parameters
League slug or Convex league ID.
Body
application/json