---
title: "Update Occupation Endpoint"
method: PUT
path: "/api/occupations/{occupation_id}"
tags: ["occupations"]
---

# Update Occupation Endpoint

`PUT /api/occupations/{occupation_id}`

## 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/{occupation_id}`
- Auth: none declared

Update an occupation

## Path parameters

- `occupation_id` string, required

## Request body

- OccupationUpdate: Model for updating occupation data
  - `occupation` string, nullable
  - `available` boolean, nullable
  - `completed` boolean, nullable
  - `total_tasks` integer, nullable
  - `completed_tasks` integer, nullable

## 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`: 1 info
  - 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/:occupation_id/put.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)
