---
title: "Create Entity"
method: POST
path: "/api/v1/entities"
tags: ["Entities"]
---

# Create Entity

`POST /api/v1/entities`

## 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/entities`
- Auth: API key in header `X-API-Key`

Add an entity to a ranking.

## Request body

- EntityCreate: Create a new entity within a ranking.
  - `name` string, required: Entity name
  - `ranking_id` string, required: UUID of the ranking
  - `description` string, nullable: Entity description
  - `image_url` string, nullable: Image URL
  - `attributes` object, nullable: Custom attributes (max 50 keys)

## Response `201`

Successful Response

- EntityResponse
  - `id` string, required
  - `ranking_id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `image_url` string, nullable, required
  - `attributes` object, nullable, required
  - `mu` number, required
  - `phi` number, required
  - `sigma` number, required
  - `match_count` integer, required
  - `win_count` integer, required
  - `created_at` string, date-time, required

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