---
title: "Upload Custom Codes Csv"
method: POST
path: "/api/v1/configurations/{configuration_id}/custom-codes/upload"
tags: ["configurations"]
---

# Upload Custom Codes Csv

`POST /api/v1/configurations/{configuration_id}/custom-codes/upload`

## Request

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

Accepts a CSV payload in JSON body.

Expected CSV headers:
    code,code_system,display_name

Returns:
    UploadCustomCodesResponse

## Path parameters

- `configuration_id` string, uuid, required

## Request body

- UploadCustomCodesCsvInput: Input model for Custom Code CSV.
  - `csv_text` string, required: Full CSV contents as UTF-8 text
  - `filename` string, nullable

## Response `200`

Successful Response

- UploadCustomCodesPreviewResponse: Validated CSV preview for delayed confirmation; only valid if preview.
  - `preview_items` UploadCustomCodesPreviewItem[], required
    - `id` string, uuid, required
    - `code` string, required
    - `system_id` string, uuid, required
    - `system_display_name` string, required
    - `display_name` string, required
    - `row` integer, nullable
  - `codes_processed` integer, nullable
  - `total_custom_codes_in_configuration` integer, nullable
  - `code_systems` CodeSystem[], required
    - `id` string, uuid, required
    - `key` string, required
    - `display_name` string, required
    - `oid` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-23** `c710294a0d33`: 2 breaking, 2 info
  - removed the required property `preview_items/items/display` from the response with the `200` status
  - removed the required property `preview_items/items/system_name` from the response with the `200` status
  - added the required property `preview_items/items/display_name` to the response with the `200` status
  - added the required property `preview_items/items/system_display_name` to the response with the `200` status
- **2026-08-05** `fe92c259d0f5`: 2 breaking
  - removed 'propertyNames' constraint from the `code_systems` response property for the status `200`
  - the `code_systems` response's property type changed from `object` to `array` for status `200`
- **2026-07-28** `790b3ade4deb`: 2 breaking, 3 info
  - removed the required property `preview_items/items/name` from the response with the `200` status
  - removed the required property `preview_items/items/system_key` from the response with the `200` status
  - added the required property `preview_items/items/display` to the response with the `200` status
  - added the required property `preview_items/items/system_id` to the response with the `200` status
  - …1 more
- **2026-06-30** `0d7e16e7f5cf`: 1 breaking, 1 info
  - removed the required property `preview` from the response with the `200` status
  - added the required property `preview_items` to the response with the `200` status
- …earlier changes not shown

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