---
title: "Create Dropdown Definition"
method: POST
path: "/workspaces/{workspace_id}/case-dropdowns"
tags: ["case-dropdowns"]
---

# Create Dropdown Definition

`POST /workspaces/{workspace_id}/case-dropdowns`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/case-dropdowns`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Create a new dropdown definition with initial options.

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- CaseDropdownDefinitionCreate: Create a new dropdown definition with initial options.
  - `name` string, required
  - `ref` string, required
  - `icon_name` string, nullable
  - `is_ordered` boolean
  - `required_on_closure` boolean
  - `position` integer
  - `options` CaseDropdownOptionCreate[]
    - `label` string, required
    - `ref` string, required
    - `icon_name` string, nullable
    - `color` string, nullable
    - `position` integer

## Response `201`

Successful Response

- CaseDropdownDefinitionRead: Read model for a dropdown definition with its options.
  - `id` string, uuid, required
  - `name` string, required
  - `ref` string, required
  - `icon_name` string, nullable
  - `is_ordered` boolean, required
  - `required_on_closure` boolean, required
  - `position` integer, required
  - `options` CaseDropdownOptionRead[]
    - `id` string, uuid, required
    - `label` string, required
    - `ref` string, required
    - `icon_name` string, nullable
    - `color` string, nullable
    - `position` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
