---
title: "PATCH /league/{id}/"
method: PATCH
path: "/league/{id}/"
tags: ["league"]
---

# PATCH /league/{id}/

`PATCH /league/{id}/`

## Request

- Base URL: `http://api.footballchallengeapp.com`
- URL: `http://api.footballchallengeapp.com/league/{id}/`
- Auth: HTTP basic

## Request body

- LeagueUpdate
  - `pk` integer
  - `name` string, required
  - `category` 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 2027 | 2028 | 2029 | 2030 | 2031 | 2032 | 2033 | 2034 | 2035 | 2036 | 2037 | 2038 | 2039 | 2040 | 2041 | 2042 | 2043 | 2044 | 2045 | 2046 | 2047 | 2048 | 2049 | 2050 | 3000 | 4000, required
  - `number_of_teams` integer, required
  - `number_of_rounds` integer, required
  - `duration_of_match` integer, required: Duration in minutes
  - `duration_of_break` integer: Duration in minutes
  - `duration_of_break_between_matches` integer: Duration in minutes
  - `description` string, nullable
  - `url` string, uri, nullable
  - `regulation` string, uri, nullable
  - `entry_fee` string, nullable
  - `poster` string, uri, nullable
  - `start_date` string, date-time, required
  - `end_date` string, date-time, required
  - `game_system` string, required
  - `results_type` integer, nullable
  - `league_days` LeagueDay[], required
    - `pk` integer
    - `weekday_number` 1 | 2 | 3 | 4 | 5 | 6 | 7, required
    - `start_hour` string, required
    - `end_hour` string, required

## Response `200`

OK

- LeagueUpdate
  - `pk` integer
  - `name` string, required
  - `category` 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 2027 | 2028 | 2029 | 2030 | 2031 | 2032 | 2033 | 2034 | 2035 | 2036 | 2037 | 2038 | 2039 | 2040 | 2041 | 2042 | 2043 | 2044 | 2045 | 2046 | 2047 | 2048 | 2049 | 2050 | 3000 | 4000, required
  - `number_of_teams` integer, required
  - `number_of_rounds` integer, required
  - `duration_of_match` integer, required: Duration in minutes
  - `duration_of_break` integer: Duration in minutes
  - `duration_of_break_between_matches` integer: Duration in minutes
  - `description` string, nullable
  - `url` string, uri, nullable
  - `regulation` string, uri, nullable
  - `entry_fee` string, nullable
  - `poster` string, uri, nullable
  - `start_date` string, date-time, required
  - `end_date` string, date-time, required
  - `game_system` string, required
  - `results_type` integer, nullable
  - `league_days` LeagueDay[], required
    - `pk` integer
    - `weekday_number` 1 | 2 | 3 | 4 | 5 | 6 | 7, required
    - `start_hour` string, required
    - `end_hour` string, required

---

[API](https://skmtc.dev/footballchallengeapp/apis/fcapp-ver-2-api.md) - [All operations](https://skmtc.dev/footballchallengeapp/apis/fcapp-ver-2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/footballchallengeapp/apis/fcapp-ver-2-api/revisions/80c7593b6107?raw)
