---
title: "Batch Set Parent"
method: POST
path: "/workspaces/{workspace_id}/cases/batch-set-parent"
tags: ["cases"]
---

# Batch Set Parent

`POST /workspaces/{workspace_id}/cases/batch-set-parent`

## Request

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

Group cases as sub-cases of a parent case with per-case results.

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- CaseBatchSetParent: Request body for grouping cases as sub-cases of a parent case.
  - `case_ids` string[], required
  - `parent_id` string, uuid, required

## Response `200`

Successful Response

- CaseBatchResponse: Per-case results and aggregate counts for a batch operation.
  - `results` CaseBatchItemResult[], required
    - `case_id` string, uuid, required
    - `success` boolean, required
    - `error` string, nullable
  - `succeeded` integer, required
  - `failed` 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)
