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

# Create a new rubric template

> Creates a reusable rubric template scoped to your organization. Optionally stores assignmentContent so the same source material is automatically supplied every time the template is used.



## OpenAPI

````yaml /openapi-components.json post /api/v1/assignment-grader/rubric-templates
openapi: 3.0.0
info:
  title: StudyFetch API
  description: API documentation for StudyFetch
  version: '1.0'
  contact: {}
servers:
  - url: https://studyfetchapi.com
    description: Production API Server
security: []
tags: []
paths:
  /api/v1/assignment-grader/rubric-templates:
    post:
      tags:
        - Assignment Grader
      summary: Create a new rubric template
      description: >-
        Creates a reusable rubric template scoped to your organization.
        Optionally stores assignmentContent so the same source material is
        automatically supplied every time the template is used.
      operationId: createRubricTemplate
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRubricTemplateDto'
      responses:
        '201':
          description: Rubric template created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RubricTemplateResponseDto'
        '400':
          description: Invalid request — missing name or criteria
        '401':
          description: Missing or invalid authentication
      security:
        - x-api-key: []
        - bearerAuth: []
components:
  schemas:
    CreateRubricTemplateDto:
      type: object
      properties:
        name:
          type: string
          description: Name of the rubric template
        description:
          type: string
          description: Description of the rubric template
        assignmentContent:
          type: string
          description: >-
            Default source material applied to any grading request that uses
            this template, unless overridden at the request level.
        criteria:
          description: Grading criteria
          type: array
          items:
            $ref: '#/components/schemas/RubricCriterionDto'
      required:
        - name
        - criteria
    RubricTemplateResponseDto:
      type: object
      properties:
        _id:
          type: string
          description: Template ID
        name:
          type: string
          description: Template name
        description:
          type: string
          description: Template description
        assignmentContent:
          type: string
          description: Default source material attached to this template
        criteria:
          description: Grading criteria
          type: array
          items:
            $ref: '#/components/schemas/RubricCriterionDto'
        organizationId:
          type: string
          description: Owning organization ID
        createdBy:
          type: string
          description: User who created the template
        createdAt:
          format: date-time
          type: string
          description: Creation timestamp
        updatedAt:
          format: date-time
          type: string
          description: Update timestamp
      required:
        - _id
        - name
        - criteria
        - organizationId
        - createdBy
        - createdAt
        - updatedAt
    RubricCriterionDto:
      type: object
      properties:
        title:
          type: string
          description: Title of the criterion
        description:
          type: string
          description: Description of the criterion
        pointsPossible:
          type: number
          description: Points possible for this criterion
      required:
        - title
        - pointsPossible
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key for server-to-server authentication. Resolves to the owning
        organization.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT bearer token for user session authentication. Resolves to both
        organization and user.

````