cases

Create Field

Create a new case field.

post/workspaces/{workspace_id}/case-fields

Request

  • Base URL
    https://platform.tracecat.com/api
  • Auth
    • API key in cookie fastapiusersauth
    • or HTTP bearer

Path parameters

workspace_idstring uuid required

Request body

namestring required

The name of the column

type'TEXT' | 'INTEGER' | 'NUMERIC' | 'DATE' | 'BOOLEAN' | 'TIMESTAMPTZ' | 'JSONB' | 'SELECT' | 'MULTI_SELECT' required

Supported SQL types.

nullableboolean
defaultunknown
is_indexboolean

Whether to create a unique index on the column

optionsstring[] nullable
display_namestring nullable
kind'LONG_TEXT' | 'URL'

Semantic kind for case custom fields.

Controls how the field is rendered in the UI without changing the underlying SQL storage type.

required_on_closureboolean

Response

Successful Response

idstring required
display_namestring required
type'TEXT' | 'INTEGER' | 'NUMERIC' | 'DATE' | 'BOOLEAN' | 'TIMESTAMPTZ' | 'JSONB' | 'SELECT' | 'MULTI_SELECT' | 'UUID' required

Read-only type for case field metadata.

descriptionstring required
nullableboolean required
defaultstring nullable required
reservedboolean required
optionsstring[] nullable
kind'LONG_TEXT' | 'URL'

Semantic kind for case custom fields.

Controls how the field is rendered in the UI without changing the underlying SQL storage type.

required_on_closureboolean

Changes

No recorded changes to this operation across all 1 revision of this API.