---
title: "Returns all Codes of the Project with the given ID"
method: GET
path: "/code/project/{project_id}"
tags: ["code"]
---

# Returns all Codes of the Project with the given ID

`GET /code/project/{project_id}`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Password
  - Token URL: `/authentication/login`

## Path parameters

- `project_id` integer, required

## Response `200`

Successful Response

- CodeRead[]
  - `name` string, required: Name of the Code
  - `color` string, required: Color of the Code
  - `description` string: Description of the Code
  - `parent_id` integer, nullable: Parent of the Code
  - `enabled` boolean: While false, the code is neither created in pre-processing nor shown in the UI (except in settings to enable it again)
  - `id` integer, required: ID of the Code
  - `project_id` integer, required: Project the Code belongs to
  - `created` string, date-time, required: Created timestamp of the Code
  - `updated` string, date-time, required: Updated timestamp of the Code
  - `is_system` boolean, required: Is the Code a system code
  - `memo_ids` integer[], required: Memo IDs attached to the Code

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) - [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/e498207e29f4?raw)
