---
title: "Create Occupation Endpoint"
method: POST
path: "/api/occupations/"
tags: ["occupations"]
---

# Create Occupation Endpoint

`POST /api/occupations/`

## Request

- Base URL: `https://api.mit-llm-survey.academy` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mit-llm-survey.academy/api/occupations/`
- Auth: none declared

Create a new occupation

## Request body

- OccupationCreate: Model for creating a new occupation
  - `occupation` string, required
  - `available` boolean
  - `completed` boolean
  - `total_tasks` integer
  - `completed_tasks` integer

## Response `200`

Successful Response

- OccupationRead: Model for reading occupation data
  - `occupation` string, required
  - `available` boolean
  - `completed` boolean
  - `total_tasks` integer
  - `completed_tasks` integer
  - `occupation_id` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-22** `6a5ef49cfcc4`: 2 info
  - the `available` request property default value changed from `true` to `false`
  - the `available` response's property default value changed from `true` to `false` for the status `200`

[Operation history](https://skmtc.dev/mit-llm-survey/apis/llm-survey-backend/changes/api/occupations/post.md)

---

[API](https://skmtc.dev/mit-llm-survey/apis/llm-survey-backend.md) - [All operations](https://skmtc.dev/mit-llm-survey/apis/llm-survey-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/mit-llm-survey/apis/llm-survey-backend/revisions/6a5ef49cfcc4?raw)
