Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Update a judgment's state

POST
/api/v3/agents/judgments/{judgmentUniqueId}/state
curl --request POST \
--url https://api.tryletterhead.com/api/v3/agents/judgments/example/state \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api": true, "state": 1 }'

Accept or dismiss a judgment an agent raised. state is 0 (pending), 1 (accepted), 2 (dismissed), or 3 (outdated).

judgmentUniqueId
required
string

The judgment’s unique identifier.

Media type application/json
object
api
required

Required. Set to true to authenticate with an API key.

boolean
state
required
integer
Allowed values: 0 1 2 3
Example
{
"api": true,
"state": 1
}

200 OK

Media type application/json
object
items
Array
message
string
total
integer
Example
{
"items": [],
"message": "",
"total": 0
}

Still can’t find what you need? Contact support.