Annotate Queue Item
Changed onAnnotates a single queue item, associating the work with the item's trace, span, or thread automatically. Supports both plain queues and queues with an attached form.
Submit criteria ratings (the flat rating fields or the annotations array) and, for form queues, custom-field answers (formResponses). At least one must be present.
Validation rules:
- For thread items: Use expectedOutcome (not expectedOutput).
- For trace/span items: Use expectedOutput (not expectedOutcome).
- A criterion's name must match an available criterion — omit it for the default criterion, otherwise it must match a configured custom criterion or a form criteria field. A mismatched name is rejected.
- Form formResponses are addressed by each field's visible label, accepted only for queues with an attached form.
- Set markAsCompleted: false to leave the item open (default: true). For form queues, completing enforces the form's required fields.
Request
- Base URLhttps://api.confident-ai.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successfully annotated the queue item
Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became optional for the status - warning
deleted the
headerrequest parameterCONFIDENT_API_KEY - warning
deleted the
pathrequest parameteritemId - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional - info
the
request property default valueDefaultwas removed - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking