DELETE
/watchlist/cases/{id}Stop monitoring a case
Stops monitoring a case.
Overview
Stops monitoring a case. The case is archived rather than physically removed.
Auth API key
Send your API key in the
X-CasePrimus-Api-Key header. See Authentication for how to create a key, and Rate limits & errors for how requests are counted.Parameters
| Name | In | Description |
|---|---|---|
idstring Required | path | The id returned when the resource was created. |
Example request
Replace CASEPRIMUS_API_KEY with your key.
Request
BASE="https://api.caseprimus.ai/api/caseprimus/v1" curl -X DELETE "$BASE/watchlist/cases/CASE_ID" \ -H "X-CasePrimus-Api-Key: $CASEPRIMUS_API_KEY"
const BASE = "https://api.caseprimus.ai/api/caseprimus/v1"; const res = await fetch(BASE + "/watchlist/cases/CASE_ID", { method: "DELETE", headers: { "X-CasePrimus-Api-Key": process.env.CASEPRIMUS_API_KEY, }, }); const data = await res.json();
import os import requests BASE = "https://api.caseprimus.ai/api/caseprimus/v1" res = requests.request( "DELETE", BASE + "/watchlist/cases/CASE_ID", headers={"X-CasePrimus-Api-Key": os.environ["CASEPRIMUS_API_KEY"]}, ) data = res.json()
Responses
200Case archived.
Response 200
{}400Case does not exist.
Response 400
{
"httpStatusCode": 400,
"code": 60401,
"message": "Watchlist case does not exist",
"appError": true
}403This case has not been shared with you.
Error responses share one shape, listed on Rate limits & errors.