---
title: "Associate Condition Codeset With Configuration"
method: PUT
path: "/api/v1/configurations/{configuration_id}/code-sets"
tags: ["configurations"]
---

# Associate Condition Codeset With Configuration

`PUT /api/v1/configurations/{configuration_id}/code-sets`

## Request

- The document declares no server URL.
- Auth: none declared

Associate a specified code set with the given configuration.

Args:
    configuration_id (UUID): ID of the configuration
    body (AssociateCodesetInput): payload containing a condition_id
    user (dict[str, Any], optional): User making the request
    db (AsyncDatabaseConnection, optional): Database connection

Raises:
    HTTPException: 404 if configuration is not found in JD
    HTTPException: 404 if configuration is not found
    HTTPException: 409 if configuration is not a draft and therefore not editable
    HTTPException: 500 if configuration cannot be updated

Returns:
    AssociateCodesetResponse: ID of updated configuration, the full list of included conditions,
          and the condition_name

## Path parameters

- `configuration_id` string, uuid, required

## Request body

- AssociateCodesetInput: Condition association input model.
  - `condition_id` string, uuid, required

## Response `200`

Successful Response

- AssociateCodesetResponse: Response from adding a code set to a config.
  - `id` string, uuid, required
  - `included_conditions` string[], required
  - `condition_display_name` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-23** `c710294a0d33`: 1 breaking, 1 info
  - removed the required property `condition_name` from the response with the `200` status
  - added the required property `condition_display_name` to the response with the `200` status
- **2026-05-12** `1dd185a22253`: 2 breaking
  - the `included_conditions/items/` response's property type changed from `object` to `string`, and format from no format to `uuid` for status `200`
  - removed the required property `included_conditions/items/id` from the response with the `200` status
- **2026-02-05** `1b704b76a93b`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-10-31** `e518923af59c`: 2 breaking, 1 info
  - removed the required property `included_conditions/items/canonical_url` from the response with the `200` status
  - removed the required property `included_conditions/items/version` from the response with the `200` status
  - added the required property `included_conditions/items/id` to the response with the `200` status
- **2025-09-12** `0bf36d4ec2b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/changes/api/v1/configurations/:configuration_id/code-sets/put.md)

---

[API](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner.md) - [All operations](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/llms.txt) - [OpenAPI document](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/revisions/7312cd4b44ac?raw)
