Patronus AI APIAnnotations
Search Annotation Criteria
POST
/
v1
/annotation-criteria
/search
Authorization
X-API-KEY
<token>
In: header
Request Body
application/json
Requiredfilters
Filters
limit
Limit
Default:
1000
Maximum: 10000
curl -X POST "https://api.patronus.ai/v1/annotation-criteria/search" \
-H "X-API-KEY: <token>" \
-H "Content-Type: application/json" \
-d '{
"filters": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{}
],
"and_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{}
],
"and_": [
{}
]
}
]
}
],
"and_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{}
],
"and_": [
{}
]
}
],
"and_": [
{}
]
}
]
}
],
"limit": 1000
}'
Successful Response
{
"annotation_criteria": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
"name": "string",
"description": "string",
"annotation_type": "string",
"categories": [
{
"label": "string",
"score": 0
}
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"resource_types": [
"trace"
],
"locked": false
}
]
}