---
title: "Create Achievement"
method: POST
path: "/v1/achievements"
tags: ["Achievements"]
---

# Create Achievement

`POST /v1/achievements`

## Request body

- AchievementCreate
  - `name` string, required — The name of the achievement
  - `description` string, required — The description of the achievement
  - `image_url` string, uri, required — The URL of the image for the achievement
  - `type` union, required — The type of the achievement
    - 'first_visit' | 'first_purchase' | 'regular_visit'
    - string
  - `position` integer, required — The position of the achievement in the list

## Response `201`

Successful Response

- AchievementRead
  - `name` string, required — The name of the achievement
  - `description` string, required — The description of the achievement
  - `image_url` string, uri, required — The URL of the image for the achievement
  - `type` union, required — The type of the achievement
    - 'first_visit' | 'first_purchase' | 'regular_visit'
    - string
  - `position` integer, required — The position of the achievement in the list
  - `id` string, required — The unique identifier of the achievement

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/aghanim/apis/aghanim-server-to-server-api.md) · [All operations](https://skmtc.net/aghanim/apis/aghanim-server-to-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aghanim/aghanim-server-to-server-api/versions/0c1b4ac1865b/schema)
