DELETE
/watchlist/entities/{id}Stop monitoring an entity
Stops monitoring an entity.
Overview
Stops monitoring an entity. The entity is archived: it is kept for audit and not physically removed, and it no longer appears in entity searches.
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/entities/ENTITY_ID" \ -H "X-CasePrimus-Api-Key: $CASEPRIMUS_API_KEY"
const BASE = "https://api.caseprimus.ai/api/caseprimus/v1"; const res = await fetch(BASE + "/watchlist/entities/ENTITY_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/entities/ENTITY_ID", headers={"X-CasePrimus-Api-Key": os.environ["CASEPRIMUS_API_KEY"]}, ) data = res.json()
Responses
200Entity archived.
Response 200
{}400Entity does not exist.
Response 400
{
"httpStatusCode": 400,
"code": 60400,
"message": "Watchlist entity does not exist",
"appError": true
}403This entity has not been shared with you.
Error responses share one shape, listed on Rate limits & errors.