---
title: "Cancel a match"
method: POST
path: "/matches/{matchId}/cancel"
tags: ["My Matches"]
---

# Cancel a match

`POST /matches/{matchId}/cancel`

Cancels a match as the personal API key owner. For a regular match the owner must be able to manage it (be a captain, co-captain, or org owner of a participating team, or an admin); past the league grace period an accepted league match is treated as a forfeit. For a PENDING challenge the owner must lead the creator team (captain, co-captain, or org owner of the challenging team), and past the challenge grace window (default 24h, league-overridable) cancelling any pending challenge - league or not - is recorded as a forfeit with the creator team taking the loss. Requires matches.user_matches:read-write and API writes access. Supports an optional `Idempotency-Key` header for safe retries.

## Path parameters

- `matchId` string, required — Match ID.

## Request body

- CancelMatchRequestBody — Cancels the match as the API key owner.
  - `reason` string — Optional cancellation reason.

## Response `200`

The match was cancelled successfully.

- CancelMatchResponse
  - `success` true, required
  - `matchId` string, required
  - `timestamp` string, required

## 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.
- `409` — Conflict.
- `429` — Rate limited.
- `500` — Internal server error.

## Changes

- **2026-06-10** `82f2480cdb83` — 2 info
  - api tag `My Matches` added
  - api tag `Matches` removed
- **2026-06-08** `33b01a4694a7` — 1 info
  - endpoint added
- **2026-06-04** `f22bd61fd595` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/teambattles/apis/teambattles-api/changes/matches/:matchId/cancel/post.md)

---

[API](https://skmtc.dev/teambattles/apis/teambattles-api.md) · [All operations](https://skmtc.dev/teambattles/apis/teambattles-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teambattles/apis/teambattles-api/revisions/75b07daef7dc?raw)
