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

# POST - Submit Model Answer

>  This API allows authenticated users (typically teachers or evaluators) to submit model answers for a given assignment.
Model answers help standardize the evaluation process by defining ideal answers, linking to rubrics, and optionally setting step-wise marks. 

 ### Key Parameters: 
 - **assignmentId** (`path param`, required): Unique ID of the assignment. 



## OpenAPI

````yaml POST /assignment-evaluation/v1/assignment/{id}/model-answer/
openapi: 3.0.1
info:
  title: Evaluation Report API
  description: An API for retrieving evaluation reports.
  version: 1.0.0
servers:
  - url: https://api-staging.crazygoldfish.com
    description: SandBox endpoint
  - url: https://api.crazygoldfish.com
    description: Prod End Point
security: []
paths:
  /assignment-evaluation/v1/assignment/{id}/model-answer/:
    post:
      summary: Post Assignment Model Answer
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier of the assignment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties: {}
      responses:
        '200':
          description: Assignment retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 3b27e0be-f9e8-4c4d-977b-b315bfb292ab
                  documents:
                    type: array
                    items:
                      type: string
                    example: []
                  rubric:
                    type: object
                  status:
                    type: integer
                    example: 0
        '400':
          description: Bad request (validation error or business logic conflict).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: 400
                      message:
                        type: object
                        properties:
                          non_field_errors:
                            type: array
                            items:
                              type: string
                              example: Invalid user type
        '403':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Response'
        '404':
          description: Assignment not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: 404
                      message:
                        type: object
                        properties:
                          non_field_errors:
                            type: array
                            items:
                              type: string
                              example: Assignment not found
components:
  schemas:
    403Response:
      type: object
      properties:
        detail:
          type: string
          example: Token has expired

````