API Referenceeval-setsUpdate Evaluation Set Item

PATCH PATCH /evaluation-sets/{eval_set_id}/items/{item_id}

Headers: x-api-key, Content-Type: application/json
Body:

{ "ground_truth": { "invoice_total": 600.10 } }

cURL

curl -X PATCH https://api.algorythmos.fr/evaluation-sets/es_92F/items/item_7Nk \
 -H "x-api-key: $ALG_KEY" \
 -H "Content-Type: application/json" \
 -d '{"ground_truth":{"invoice_total":600.10}}'

JavaScript

await fetch('https://api.algorythmos.fr/evaluation-sets/es_92F/items/item_7Nk', {
  method: 'PATCH',
  headers: { 'x-api-key': process.env.ALG_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ ground_truth: { invoice_total: 600.10 } })
})

Python

import requests, os
requests.patch(
  'https://api.algorythmos.fr/evaluation-sets/es_92F/items/item_7Nk',
  headers={'x-api-key': os.environ['ALG_KEY']},
  json={'ground_truth': {'invoice_total': 600.10}}
)