---
title: "Set Codes Status"
method: POST
path: "/api/v1/configurations/{configuration_id}/set-status"
tags: ["configurations"]
---

# Set Codes Status

`POST /api/v1/configurations/{configuration_id}/set-status`

## Request

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

Sets selected codes to the specified `status` for the given configuration ID.

If `update_beyond_rendered_set` is false, we update status for only the specified
`code_ids` within the rendered page.

If `update_beyond_rendered_set` is true, we skip any codes within `code_ids_to_skip`
and update status for all other codes that don't get clipped away by the passed-in filters

Args:
    configuration_id (UUID): ID of the configuration to update
    update_beyond_rendered_set (bool): Whether the action should be only within the rendered codes or include all codes.
    code_ids (list[UUID]): List of code IDs to specifically action. Used in the "within cursor" flow.
    code_ids_to_skip (list[UUID]): List of code IDs to skip since they've been manually actioned by the user.
    filters (FilterInput): Filter input coming from the client to build the "complete" set of codes to bulk select
    status (Literal['included', 'excluded'): Set codes as 'included' or 'excluded'
    user (DbUser): The logged-in user
    db (AsyncDatabaseConnection): Database connection

Raises:
    HTTPException: 404 if configuration can't be found

Returns:
    list[UUID]: Code IDs that had their status changed

## Path parameters

- `configuration_id` string, uuid, required

## Query parameters

- `update_beyond_rendered_set` boolean, required
- `status` 'included' | 'excluded', required
- `search` string, nullable
- `code_systems` string[]
- `sources` string[]
- `statuses` string[]

## Request body

- BodySetCodesStatus
  - `code_ids_to_skip` string[], required
  - `code_ids` string[], required

## Response `200`

Successful Response

- string[]

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-03** `17faf3275ffc`: 4 breaking, 4 info
  - added the new required `query` request parameter `update_beyond_rendered_set`
  - added the new required request property `code_ids`
  - added the new required request property `code_ids_to_skip`
  - the request's body type changed from `array` to `object`
  - …4 more
- **2026-08-12** `551535bcd0e0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/changes/api/v1/configurations/:configuration_id/set-status/post.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)
