---
title: "POST /league/duration_validate/"
method: POST
path: "/league/duration_validate/"
tags: ["league"]
---

# POST /league/duration_validate/

`POST /league/duration_validate/`

## Request

- Base URL: `http://api.footballchallengeapp.com`
- URL: `http://api.footballchallengeapp.com/league/duration_validate/`
- Auth: HTTP basic

## Request body

- LeagueDurationValidation
  - `number_of_matches` integer, required
  - `duration_of_match` integer, required
  - `duration_of_break` integer
  - `duration_of_break_between_matches` integer
  - `start_date` string, date-time, required
  - `end_date` string, date-time, required
  - `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

- LeagueDurationValidationResponse[]
  - `is_valid` boolean, required
  - `current_duration` integer, required
  - `errors` object, 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/a5e4836378fa?raw)
