---
title: "POST /tournament/{id}/swap_matches/"
method: POST
path: "/tournament/{id}/swap_matches/"
tags: ["tournament"]
---

# POST /tournament/{id}/swap_matches/

`POST /tournament/{id}/swap_matches/`

## Request

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

## Request body

- Tournament
  - `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
  - `entry_fee` string, nullable
  - `description` string, nullable
  - `url` string, uri, nullable
  - `count_accepted_teams` string
  - `event` Event, required
    - `pk` integer
    - `await_for_organizer_reaction` boolean, nullable
    - `organizer` UserTrainer, required
      - `pk` integer
      - `avatar` string
      - `first_name` string
      - `last_name` string
      - `is_fan` boolean
      - `is_trainer` boolean
      - `is_player` boolean
      - `is_scout` boolean
      - `is_investor` boolean
      - `address` string, nullable
      - `phone` string
    - `start_date` string, date-time, nullable
    - `end_date` string, date-time, nullable
    - `is_event_organizer` string
    - `results_type` 10 | 20 | 21 | 30
    - `status` 0 | 10 | 20 | 30 | 35 | 40 | 50 | 60, nullable
    - `status_for_organizer` string
    - `my_waiting_to_approval_requests` string
    - `is_active` string
    - `location_place` string, required
    - `place_address` string, nullable
    - `place_name` string, nullable
    - `game_system` 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 85 | 90, required
    - `like_count` integer
    - `is_liked_by_me` string
    - `is_promoted` string
    - `is_referee` boolean
    - `number_of_paid_teams` integer, nullable
    - `payment_status` 10 | 20 | 30, nullable
    - `results_visible_to_all` boolean
  - `poster` string, uri, nullable
  - `regulation` string, uri, nullable
  - `game_format` 0 | 10 | 20
  - `group_stage_number_of_groups` integer, nullable
  - `finish_stage_game_format` 0 | 10, nullable
  - `tournament_days` TournamentDay[]
    - `pk` integer
    - `day_number` integer, required
    - `start_date` string, date-time, required
    - `end_date` string, date-time, required
  - `tournament_additional_breaks` TournamentAdditionalBreak[]
    - `pk` integer
    - `start_date` string, date-time, required
    - `duration` integer, required: Duration in minutes

## Response `201`

Created

- Tournament
  - `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
  - `entry_fee` string, nullable
  - `description` string, nullable
  - `url` string, uri, nullable
  - `count_accepted_teams` string
  - `event` Event, required
    - `pk` integer
    - `await_for_organizer_reaction` boolean, nullable
    - `organizer` UserTrainer, required
      - `pk` integer
      - `avatar` string
      - `first_name` string
      - `last_name` string
      - `is_fan` boolean
      - `is_trainer` boolean
      - `is_player` boolean
      - `is_scout` boolean
      - `is_investor` boolean
      - `address` string, nullable
      - `phone` string
    - `start_date` string, date-time, nullable
    - `end_date` string, date-time, nullable
    - `is_event_organizer` string
    - `results_type` 10 | 20 | 21 | 30
    - `status` 0 | 10 | 20 | 30 | 35 | 40 | 50 | 60, nullable
    - `status_for_organizer` string
    - `my_waiting_to_approval_requests` string
    - `is_active` string
    - `location_place` string, required
    - `place_address` string, nullable
    - `place_name` string, nullable
    - `game_system` 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 85 | 90, required
    - `like_count` integer
    - `is_liked_by_me` string
    - `is_promoted` string
    - `is_referee` boolean
    - `number_of_paid_teams` integer, nullable
    - `payment_status` 10 | 20 | 30, nullable
    - `results_visible_to_all` boolean
  - `poster` string, uri, nullable
  - `regulation` string, uri, nullable
  - `game_format` 0 | 10 | 20
  - `group_stage_number_of_groups` integer, nullable
  - `finish_stage_game_format` 0 | 10, nullable
  - `tournament_days` TournamentDay[]
    - `pk` integer
    - `day_number` integer, required
    - `start_date` string, date-time, required
    - `end_date` string, date-time, required
  - `tournament_additional_breaks` TournamentAdditionalBreak[]
    - `pk` integer
    - `start_date` string, date-time, required
    - `duration` integer, required: Duration in minutes

---

[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/a5e4836378fa?raw)
