---
title: "Create Challenge"
method: POST
path: "/api/v1/challenges"
tags: ["Challenges"]
---

# Create Challenge

`POST /api/v1/challenges`

## Request

- Base URL: `https://app.aimrank.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.aimrank.io/api/v1/challenges`
- Auth: none declared

Create a new challenge for a ranking.

## Request body

- ChallengeCreate
  - `ranking_id` string, required
  - `title` string, required
  - `description` string, nullable
  - `challenge_type` string
  - `starts_at` string, date-time, nullable
  - `ends_at` string, date-time, nullable
  - `target_votes` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aimrank/apis/aimrank-api.md) · [All operations](https://skmtc.dev/aimrank/apis/aimrank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aimrank/apis/aimrank-api/revisions/3574d0aff459?raw)
