---
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_name` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-06-01** `808af89fc071`: 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

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

---

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