Description
API ReferenceAnnotations

Create Annotation Criteria

POST
/v1/annotation-criteria
/v1/annotation-criteria

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Request Body

application/jsonRequired

project_id
Required
Project Id

Format: "uuid"

name
Required
Name

Minimum length: 1Maximum length: 100

descriptionDescription

annotation_type
Required
AnnotationType

Value in: "binary" | "continuous" | "discrete" | "categorical" | "text_annotation"

categoriesCategories

curl -X POST "https://api.patronus.ai/v1/annotation-criteria" \
  -H "X-API-KEY: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
    "name": "string",
    "description": "string",
    "annotation_type": "binary",
    "categories": [
      {
        "label": "string",
        "score": 0
      }
    ]
  }'

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"
  }
}