Retrieve a paginated list of all annotation configurations in the system.
Cursor for pagination (base64-encoded annotation config ID)
Maximum number of configs to return
100
GET /v1/annotation_configs HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
],
"id": "text"
}
],
"next_cursor": "text"
}
POST /v1/annotation_configs HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
]
}
{
"data": {
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
],
"id": "text"
}
}
ID or name of the annotation configuration
GET /v1/annotation_configs/{config_identifier} HTTP/1.1
Host:
Accept: */*
{
"data": {
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
],
"id": "text"
}
}
ID of the annotation configuration
PUT /v1/annotation_configs/{config_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
]
}
{
"data": {
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
],
"id": "text"
}
}
ID of the annotation configuration
DELETE /v1/annotation_configs/{config_id} HTTP/1.1
Host:
Accept: */*
{
"data": {
"name": "text",
"type": "text",
"description": "text",
"optimization_direction": "MINIMIZE",
"values": [
{
"label": "text",
"score": 1
}
],
"id": "text"
}
}