Skip to main content

Case Merge & Split

Split a case into two cases or merge two cases into one. Restructure case boundaries when automatic grouping needs adjustment.

When the automatic case grouping does not match your needs, split a case into two partitions or merge two cases together.

POST/v1/cases/:key/split

Response

Response fields

case_astringCase key for the first partition (updated existing case).
case_bstringCase key for the second partition (new case).

Response

{
  "case_a": "a1b2c3d4e5f6a7b8",
  "case_b": "b2c3d4e5f6a7b8c9"
}
POST/v1/cases/merge

Response

Response fields

merged_case_keystringCase key of the resulting merged case (derived from case A).
document_countintegerTotal number of documents in the merged case.

Response

{
  "merged_case_key": "c3d4e5f6a7b8c9d0",
  "document_count": 7
}

Errors

Error responses

400bad_requestInvalid case key format.
401unauthorizedMissing or invalid API key.
404not_foundOne or both cases not found.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.