---
title: "Update custom formation"
method: PATCH
path: "/api/me/custom-formations/{id}"
tags: ["Teams"]
---

# Update custom formation

`PATCH /api/me/custom-formations/{id}`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/me/custom-formations/{id}`
- Auth: HTTP bearer

Last-write-wins partial update - any of sport, name, presetKey, slots (#847). Renames keep per-sport uniqueness; moves to a full sport fail with CUSTOM_FORMATION_LIMIT.

## Path parameters

- `id` string, required

## Request body

- object: Partial { sport?, name?, presetKey?, slots? }
  - `sport` string
  - `name` string
  - `presetKey` string
  - `slots` object: Record<slotKey, slot layout> - opaque to the backend, at most 30 entries.

## Response `200`

{ success, data: formation }

## Other responses

- `400`: VALIDATION_ERROR
- `401`: Authentication required
- `404`: Formation not found
- `409`: CONFLICT or CUSTOM_FORMATION_LIMIT

## Changes

- **2026-11-18** `6de639c52609`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/me/custom-formations/:id/patch.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
