Skip to main content
POST
/
v1
/
annotation_configs
Create an annotation configuration
curl --request POST \
  --url https://api.example.com/v1/annotation_configs \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "optimization_direction": "MINIMIZE",
  "values": [
    {
      "label": "<string>",
      "score": 123
    }
  ],
  "description": "<string>"
}
'
{
  "data": {
    "name": "<string>",
    "type": "<string>",
    "optimization_direction": "MINIMIZE",
    "values": [
      {
        "label": "<string>",
        "score": 123
      }
    ],
    "id": "<string>",
    "description": "<string>"
  }
}

Body

application/json
name
string
required
type
string
required
Allowed value: "CATEGORICAL"
optimization_direction
enum<string>
required
Available options:
MINIMIZE,
MAXIMIZE,
NONE
values
CategoricalAnnotationValue · object[]
required
description
string | null

Response

Successful Response

data
CategoricalAnnotationConfig · object
required