Description
API ReferencePairwise Annotations

Create Pairwise Annotation

POST
/v1/pairwise-annotations
/v1/pairwise-annotations

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Request Body

application/jsonRequired

name
Required
Name

Minimum length: 1Maximum length: 100

log_a_id
Required
Log A Id

Format: "uuid"

log_a_score
Required
Log A Score

log_b_id
Required
Log B Id

Format: "uuid"

log_b_score
Required
Log B Score

curl -X POST "https://api.patronus.ai/v1/pairwise-annotations" \
  -H "X-API-KEY: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "log_a_id": "3cf2c9d6-672e-4257-a939-4ee0262652bd",
    "log_a_score": 0,
    "log_b_id": "6507bfdd-83b6-4926-9d92-bf14a32e50fe",
    "log_b_score": 0
  }'

Successful Response

{
  "pairwise_annotation": {
    "name": "string",
    "log_a_id": "3cf2c9d6-672e-4257-a939-4ee0262652bd",
    "log_a_score": 0,
    "log_b_id": "6507bfdd-83b6-4926-9d92-bf14a32e50fe",
    "log_b_score": 0,
    "created_at": "2019-08-24T14:15:22Z"
  }
}