> ## Documentation Index
> Fetch the complete documentation index at: https://docs.calibrate.artpark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set trace feedback

> Set whether the agent's output on a trace was correct, replacing any earlier feedback, or clear it



## OpenAPI

````yaml /api-reference/openapi.json put /traces/{trace_uuid}/feedback
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /traces/{trace_uuid}/feedback:
    put:
      tags:
        - traces
      summary: Set trace feedback
      description: >-
        Set whether the agent's output on a trace was correct, replacing any
        earlier feedback, or clear it
      operationId: set_trace_feedback_endpoint_traces__trace_uuid__feedback_put
      parameters:
        - name: trace_uuid
          in: path
          required: true
          schema:
            type: string
            description: The trace to give feedback on
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Trace Uuid
          description: The trace to give feedback on
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TraceFeedbackUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceFeedbackResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TraceFeedbackUpdate:
      properties:
        is_correct:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Correct
          description: >-
            Whether the agent's output for this turn was correct. `null` clears
            the feedback
        comment:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Comment
          description: >-
            What was right or wrong about the agent's output. Omit if you have
            none
      additionalProperties: false
      type: object
      required:
        - is_correct
      title: TraceFeedbackUpdate
    TraceFeedbackResponse:
      properties:
        feedback:
          anyOf:
            - $ref: '#/components/schemas/TraceFeedback'
            - type: 'null'
          description: The feedback now on the trace
      type: object
      required:
        - feedback
      title: TraceFeedbackResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TraceFeedback:
      properties:
        is_correct:
          type: boolean
          title: Is Correct
          description: Whether the agent's output for this turn was correct
        comment:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Comment
          description: >-
            What was right or wrong about the agent's output. Omit if you have
            none
        at:
          type: string
          title: At
          description: When the feedback was last given (ISO 8601 UTC)
      additionalProperties: false
      type: object
      required:
        - is_correct
        - at
      title: TraceFeedback
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.