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 useshttpx.
POST /v2/cases.
No existing counterparty ID is needed. This guide’s permission assumptions apply to manual cases only, not to screening cases.
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 toin_review using PATCH /v2/cases/{id}.
3. Record your review comment
Add a review comment usingPOST /v2/cases/{id}/comments.
4. Optionally save an investigation
Save an empty investigation usingPOST /v2/investigations.
5. Link the optional investigation
Link the investigation to your case usingPOST /v2/cases/{id}/investigations with the returned investigation_id.
6. Verify the optional link
Read the case’s linked investigations usingGET /v2/cases/{id}/investigations and check for your investigation_id.
7. Dismiss the case
Dismiss your manual case usingPATCH /v2/cases/bulk.
updated: 1 and skipped: 0.
8. Verify the final case state
Read the case usingGET /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.status: resolved and resolution: dismissed.
9. Read the timeline last
Read the case timeline usingGET /v2/cases/{id}/timeline and find the dismissal event.
10. Clean up the optional investigation
If you ran steps 4 through 6, delete only the investigation you created in step 4 withDELETE /v2/investigations/{id}. Skip this deletion if you skipped those steps.
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 astriage_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.