Passer au contenu principal
POST
/
annotation_queues
/
{queue_id}
/
items
Ajouter des calls à la file d'attente d'annotation
curl --request POST \
  --url https://api.example.com/annotation_queues/{queue_id}/items \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "call_ids": [
    "<string>"
  ],
  "display_fields": [
    "<string>"
  ]
}
'
{
  "added_count": 123,
  "duplicates": 123
}

Autorisations

Authorization
string
header
requis

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Paramètres de chemin

queue_id
string
requis

Corps

application/json

Corps de la requête pour ajouter des appels à une file d'attente d'annotation (queue_id provient du chemin).

project_id
string
requis
Exemple:

"entity/project"

call_ids
string[]
requis
Exemple:
["call-1", "call-2", "call-3"]
display_fields
string[]
requis

Chemins JSON à afficher aux annotateurs

Exemple:
["input.prompt", "output.text"]

Réponse

Réponse réussie

Réponse à l’ajout d’appels à une file d'attente.

added_count
integer
requis
duplicates
integer
requis