---
title: "POST /teams/{id}/delete_by_user/"
method: POST
path: "/teams/{id}/delete_by_user/"
tags: ["teams"]
---

# POST /teams/{id}/delete_by_user/

`POST /teams/{id}/delete_by_user/`

## Request

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

## Request body

- Team
  - `pk` integer
  - `name` string, required
  - `main_trainer` 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
  - `trainers` 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
  - `description` string, nullable
  - `place_address` string, nullable
  - `location_place` string, required
  - `category_name` string
  - `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, nullable
  - `is_team_trainer` boolean
  - `image` string, uri
  - `is_temporary` boolean
  - `like_count` string
  - `is_liked_by_me` boolean
  - `rating` AvgTeamRating, required
    - `avg_sport_rating` number, required
    - `avg_organization_rating` number, required
    - `avg_fair_play_rating` number, required
  - `is_great_in_sport_level` boolean
  - `is_great_in_organization_level` boolean
  - `is_great_in_fair_play_level` boolean
  - `is_bad_team` boolean
  - `ranking_points` integer

## Response `201`

Created

- Team
  - `pk` integer
  - `name` string, required
  - `main_trainer` 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
  - `trainers` 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
  - `description` string, nullable
  - `place_address` string, nullable
  - `location_place` string, required
  - `category_name` string
  - `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, nullable
  - `is_team_trainer` boolean
  - `image` string, uri
  - `is_temporary` boolean
  - `like_count` string
  - `is_liked_by_me` boolean
  - `rating` AvgTeamRating, required
    - `avg_sport_rating` number, required
    - `avg_organization_rating` number, required
    - `avg_fair_play_rating` number, required
  - `is_great_in_sport_level` boolean
  - `is_great_in_organization_level` boolean
  - `is_great_in_fair_play_level` boolean
  - `is_bad_team` boolean
  - `ranking_points` integer

---

[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)
