Skip to main content
Create and review a synthetic manual case, then verify its dismissal and final audit trail.

Prerequisites

  • A workspace API key, exported as RANGE_API_KEY. Use the shared quickstart for key setup and Bearer authentication.
  • A workspace where you can create synthetic manual cases.

1. Create a manual case

Run this setup once to create the API client and generate a unique case title, following the Platform test inputs. It uses httpx.
Create a manual case with a name-only counterparty subject using POST /v2/cases.
No existing counterparty ID is needed. This guide’s permission assumptions apply to manual cases only, not to screening cases.
Example response (HTTP 201), abbreviated where fields are omitted:
The POST response supplies case_id; no list call is needed to discover the new case. Use the IDs returned by your own requests throughout this guide.

2. Enter review

Set the case’s status to in_review using PATCH /v2/cases/{id}.
Example response (HTTP 200), abbreviated where fields are omitted:

3. Record your review comment

Add a review comment using POST /v2/cases/{id}/comments.
Example response (HTTP 201), abbreviated where fields are omitted:

4. Optionally save an investigation

Save an empty investigation using POST /v2/investigations.
This step saves an empty investigation for the synthetic linking example. For tracing, follow the investigation playbook.
Example response (HTTP 201), abbreviated where fields are omitted:
Link the investigation to your case using POST /v2/cases/{id}/investigations with the returned investigation_id.
Example response: HTTP 204, no response body. Read the case’s linked investigations using GET /v2/cases/{id}/investigations and check for your investigation_id.
Example response (HTTP 200), abbreviated where fields are omitted:
Skip steps 4 through 6 together if no investigation is needed.

7. Dismiss the case

Dismiss your manual case using PATCH /v2/cases/bulk.
Example response (HTTP 200), abbreviated where fields are omitted:
Check both counters. For the single manual case created here, success is exactly updated: 1 and skipped: 0.

8. Verify the final case state

Read the case using GET /v2/cases/{id} and check its status and resolution.
A detail GET with an API key does not mark the case as viewed or change updated_at. A view is recorded only when a session viewer email is present; PatchCaseDto.read requires a session. This procedure does not set read.
Example response (HTTP 200), abbreviated where fields are omitted:
The final state is status: resolved and resolution: dismissed.

9. Read the timeline last

Read the case timeline using GET /v2/cases/{id}/timeline and find the dismissal event.
Example response (HTTP 200), abbreviated where fields are omitted:
The resolved status-change entry confirms dismissal is included in the audit trail.

10. Clean up the optional investigation

If you ran steps 4 through 6, delete only the investigation you created in step 4 with DELETE /v2/investigations/{id}. Skip this deletion if you skipped those steps.
Example response: HTTP 204, no response body. The case remains as a dismissed audit record with status: resolved and resolution: dismissed. This API-key procedure ends with dismissal and does not delete the case. After cleanup, close the client:

Complete runnable script

Save as triage_manual_case.py, set RANGE_API_KEY, and run python triage_manual_case.py. Add --with-investigation to exercise the optional branch. The script keeps the case as a dismissed audit record and deletes only the investigation it created. Its failure cleanup dismisses its own case before closing the client.
Cleanup reference: delete an investigation. For request failures, use Errors and rate limits.
Last modified on November 30, 2026