Skip to main content
A case type sets what every case of that kind has: which custom fields, which tables, and which tasks. Use one per kind of work, such as phishing or account_takeover. Each type has a ref, the slug you create cases with, which cannot change, and a name shown to people. Create and edit case types in the console, through the API, the MCP server, or Git sync. Workflows can read them with the core.cases actions.

What a case type sets

A task has a title, and optionally a description, a priority, a response_action, and static args for it. The response action is the ID of a response action.

Expressions

Task and group text can show values from the case.
  • Nothing else is allowed inside ${{ }}: no functions, secrets, or variables. Tracecat rejects the case type when you save it.
  • The field or table must be listed in the type’s fields or tables.
  • Text is filled in from the case’s current values each time the tasks are read, so it follows changes to the case.
  • Each task run keeps the title and description as they were when the run started.

Cases of a type

Set case_type to the type’s ref when you create a case. The type cannot be changed afterwards. On a case of a type:
  • Custom fields outside the type are hidden and cannot be set.
  • Tasks cannot be added or removed.
  • A task’s title, description, and response action cannot be edited. Its status, assignee, and priority can.
  • A batch update that sets a field some cases do not have fails for those cases and updates the rest.
A case created without a type is of the default type: every custom field, and no tasks until you add them. Every case created before case types is a default case.

Versions

Each change to a type’s fields, tables, or tasks saves a new version. A case keeps the version of its type it was created with; new cases use the latest. Changing the name or description does not create a version. You cannot delete or rename a custom field, table, or response action while the latest version of a case type uses it.

Preview

Preview renders a saved case type, or a definition you have not saved, without changing anything.
  • With a case, expressions show that case’s values.
  • Without one, each expression shows as its name, such as {sender_domain}.
  • problems lists the fields, tables, and response actions the definition names that do not exist.