CasePrimus.aiby Attestr
Documentation menu
PUT/watchlist/cases/{id}

Update a watchlist case

Changes a case's riskLevel and/or status.

Overview

Changes a case's riskLevel and/or status. For example, change the status to stop tracking a case without fully archiving it, or correct a risk classification by hand.

Auth API keyContent-Type application/json
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

NameInDescription
id
string
Required
pathThe id returned when the resource was created.

Request body

FieldDescription
riskLevel
enum
Optional
VERY_HIGHHIGHMODERATELOWUNCLASSIFIED
status
enum
Optional
ACTIVEPENDING_BACKOFFICE_REVIEWREJECTEDARCHIVED
Body: Success
{
  "riskLevel": "HIGH"
}

Example request

Replace CASEPRIMUS_API_KEY with your key.

Request
BASE="https://api.caseprimus.ai/api/caseprimus/v1"

curl -X PUT "$BASE/watchlist/cases/CASE_ID" \
  -H "X-CasePrimus-Api-Key: $CASEPRIMUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "riskLevel": "HIGH"
  }'

Responses

200Case updated.
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.