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

# Post Prediction Feedback

> M-?? Record binary feedback on a prediction outcome. "POST
/predictions/{id}/feedback stays; outcomes feed the backtest ledger"
(API-IMPLEMENTATION-SPEC.md §8.2).

Body: {outcome: 'correct'|'incorrect', notes?: str}

Stores feedback on the prediction:
  pred['feedback'] = {outcome, notes, recorded_at, recorded_by}

Returns the full updated prediction.



## OpenAPI

````yaml /openapi.json post /v1/predictions/{prediction_id}/feedback
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/predictions/{prediction_id}/feedback:
    post:
      tags:
        - predictions
      summary: Post Prediction Feedback
      description: |-
        M-?? Record binary feedback on a prediction outcome. "POST
        /predictions/{id}/feedback stays; outcomes feed the backtest ledger"
        (API-IMPLEMENTATION-SPEC.md §8.2).

        Body: {outcome: 'correct'|'incorrect', notes?: str}

        Stores feedback on the prediction:
          pred['feedback'] = {outcome, notes, recorded_at, recorded_by}

        Returns the full updated prediction.
      operationId: post_prediction_feedback_v1_predictions__prediction_id__feedback_post
      parameters:
        - in: path
          name: prediction_id
          required: true
          schema:
            title: Prediction Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PredictionFeedbackPostBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Post Prediction Feedback V1 Predictions  Prediction
                  Id  Feedback Post
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    PredictionFeedbackPostBody:
      description: Body for POST /predictions/{id}/feedback (M-??).
      properties:
        notes:
          anyOf:
            - maxLength: 1000
              type: string
            - type: 'null'
          title: Notes
        outcome:
          pattern: ^(correct|incorrect)$
          title: Outcome
          type: string
      required:
        - outcome
      title: PredictionFeedbackPostBody
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````