---
title: "Create a league penalty"
method: POST
path: "/leagues/{identifier}/penalties/create"
tags: ["League: Moderation"]
---

# Create a league penalty

`POST /leagues/{identifier}/penalties/create`

Issues a warning, match-forfeit penalty, or point deduction to a league team. Requires a personal or developer API key whose owner is currently a league ADMIN of the league in the path, with the league penalties capability enabled on the key. League API access is gated at api_pro on the league owner's plan.

## Path parameters

- `identifier` string, required — League slug or Convex league ID.

## Request body

- CreatePenaltyRequestBody — Creates a league team penalty.
  - `teamId` string, required — Team ID receiving the penalty.
  - `gameId` string, required — Game ID for the league penalty.
  - `seasonId` string — Optional league season ID for the penalty.
  - `type` 'POINT_DEDUCTION' | 'MATCH_FORFEIT' | 'WARNING', required — Penalty type.
  - `value` integer — Point value for POINT_DEDUCTION (integer, 1-1000).
  - `reason` string, required — Reason for the penalty.

## Response `200`

The league penalty was created.

- CreatePenaltyResponse
  - `success` true, required
  - `penaltyId` string, required — Created league penalty ID.
  - `timestamp` string, required — Response generation time (ISO 8601).

## Other responses

- `400` — Bad request (invalid body, cursor, limit, or date).
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission.
- `404` — Resource not found.
- `429` — Rate limited.
- `500` — Internal server error.

---

[API](https://skmtc.net/teambattles/apis/teambattles-api.md) · [All operations](https://skmtc.net/teambattles/apis/teambattles-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teambattles/teambattles-api/revisions/2ffe8fb53b7d/schema)
