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

# Update evaluation question

> Update one question in an agent's evaluation set. Use this when the prompt wording or expected answer changes.



## OpenAPI

````yaml put /api/agents/{id}/test-prompts/{promptId}
openapi: 3.0.3
info:
  title: Rippletide Agent Evaluation API
  description: >-
    Public API for evaluation agents, test prompts, test results, and knowledge
    imports
  version: 1.0.0
  contact:
    name: Rippletide API Support
servers:
  - url: https://agent-evalserver-production.up.railway.app
    description: Production server
  - url: http://localhost:3001
    description: Development server
security: []
paths:
  /api/agents/{id}/test-prompts/{promptId}:
    put:
      tags:
        - Test Prompts
      summary: Update evaluation question
      description: >-
        Update one question in an agent's evaluation set. Use this when the
        prompt wording or expected answer changes.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Evaluation agent ID.
        - name: promptId
          in: path
          required: true
          schema:
            type: integer
          description: Evaluation question ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTestPromptRequest'
            examples:
              question:
                summary: Update an evaluation question
                value:
                  prompt: What is your refund policy for annual plans?
                  expectedAnswer: Customers can request a refund within 30 days of purchase.
      responses:
        '200':
          description: Evaluation question updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestPrompt'
              examples:
                updated:
                  summary: Updated evaluation question
                  value:
                    id: 42
                    prompt: What is your refund policy for annual plans?
                    expectedAnswer: Customers can request a refund within 30 days of purchase.
                    testAnswer: null
                    created_at: '2026-06-02T15:10:00Z'
                    updated_at: '2026-06-02T15:18:00Z'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent or question not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateTestPromptRequest:
      type: object
      description: Update one evaluation question and its optional expected answer.
      properties:
        prompt:
          type: string
          description: Updated question or task sent to the evaluated agent.
          example: What is your refund policy for annual plans?
        expectedAnswer:
          type: string
          nullable: true
          description: Updated reference answer used during evaluation.
          example: Customers can request a refund within 30 days of purchase.
    TestPrompt:
      type: object
      description: >-
        Question and optional expected answer used to evaluate an agent
        response.
      properties:
        id:
          type: integer
          description: >-
            Numeric prompt identifier. Use this ID when submitting a result for
            the prompt.
          example: 42
        prompt:
          type: string
          description: Question or task sent to the evaluated agent.
          example: What is your refund policy?
        expectedAnswer:
          type: string
          nullable: true
          description: Optional answer used as the reference for evaluation.
          example: Customers can request a refund within 30 days.
        testAnswer:
          type: string
          nullable: true
          description: Latest answer captured for this prompt, when available.
          example: Customers can request a refund within 30 days of purchase.
        created_at:
          type: string
          format: date-time
          description: Creation timestamp.
          example: '2026-06-02T15:10:00Z'
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp.
          example: '2026-06-02T15:12:00Z'
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Platform API key for authenticated account-level API access

````