---
title: "Select Codes"
method: PUT
path: "/interactions/{id}/codes/"
tags: ["Codes (Legacy)"]
---

# Select Codes

`PUT /interactions/{id}/codes/`

`Limited Access - Contact us for more information`<br/><br/>Select predicted codes within the context of an interaction.<br/><Note>This endpoint is only accessible within specific customer tenants. It is not available in the public API.<br/><br/>For stateless code prediction based on input text string or documentId, please refer to the [Predict Codes](/api-reference/codes/predict-codes) API, or [contact us](https://help.corti.app) for more information.</Note>

## Path parameters

- `id` string, uuid, required

## Headers

- `Tenant-Name` string, required — Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

## Request body

- RequestCodesUpdate
  - `finalCodes` object[] — List of final codes
    - `code` string — The medical code to update
    - `additionalCodes` string[] — List of additional codes

## Response `200`

Updated list of selected codes.

- ResponseCodesList
  - `codes` object[] — List of medical codes
    - `system` string — The coding system used
    - `code` string — The medical code
    - `description` string — Description of the medical code
    - `state` CodesState
      - `isSelected` boolean — Indicates whether the code is selected
      - `source` 'core' | 'system' | 'user'
    - `additionalCodes` object[] — List of additional codes
      - `subsetName` string — Category or subset of the additional code
      - `code` string — The additional code
      - `description` string — Description of the additional code
      - `state` CodesState
        - `isSelected` boolean — Indicates whether the code is selected
        - `source` 'core' | 'system' | 'user'
  - `usageInfo` CommonUsageInfo — Credits consumed for this request.
    - `creditsConsumed` number, required

## Other responses

- `400` — RFC9457
- `403` — RFC9457
- `500` — RFC9457
- `504` — RFC9457

---

[API](https://skmtc.net/corti/apis/admin-api.md) · [All operations](https://skmtc.net/corti/apis/admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/corti/admin-api/versions/5d1895a1b3fc/schema)
