> ## 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 - Model Answer

> The API is used to create a model answer sheet for an exam. This API initializes a placeholder for model answers, allowing you to later add documents (e.g., PDFs or images) associated with the model answers. This API is used to upload a model answer sheet for a specific exam. A one-to-one mapping exists between an exam and its model answer sheet, meaning that each exam can have only one model answer sheet associated with it.


**Scenarios:**

1. **Initializing a Model Answer Sheet for an Exam:**
   - A teacher uses this API to prepare a model answer sheet by creating a placeholder for it.
   - **Outcome:**
     - The response confirms that a model answer sheet is successfully initialized for the exam.
     - The teacher can subsequently upload documents, such as PDFs or JPEGs, representing the model answers using the PATCH Model Answer Sheet API.


<div
  style={{
background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
borderRadius: '16px',
padding: '4px',
marginTop: '20px',
marginBottom: '20px',
boxShadow: '0 10px 40px rgba(102, 126, 234, 0.3)'
}}
>
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/E1fsNZNRmok" title="Evaluation Platform | POST | Model Answer | API Reference Guide" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</div>


## OpenAPI

````yaml POST /evaluation-platform/v1/exam/{examId}/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:
  /evaluation-platform/v1/exam/{examId}/model-answer/:
    post:
      summary: Create model answer for an exam
      operationId: create_model_answer
      parameters:
        - in: path
          name: examId
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Created - Exam entry successfully created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier of the model answer
                    example: 287117d6-0135-4329-b5a7-d46e42948a14
                  documents:
                    type: array
                    description: >-
                      List of documents associated with the model answer
                      initially empty
                    items:
                      type: string
                    example: []
        '403':
          description: Authentication failed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Token has expired
              example:
                detail: Token has expired
        '404':
          description: Bad Request - Answer sheet not evaluated
          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: Exam not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````