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

# Create Incident Template



## OpenAPI

````yaml api-reference/openapi.json post /incident-templates
openapi: 3.1.0
info:
  title: Cachet
  version: 0.0.1
  description: >-
    API documentation for Cachet, the open-source, self-hosted status page
    system.
servers:
  - url: http://localhost/api
  - url: https://v3.cachethq.io/api
    description: The Cachet v3 demo server.
security:
  - http: []
tags:
  - name: Cachet
  - name: Components
  - name: Component Groups
  - name: Incidents
  - name: Incident Updates
  - name: Incident Templates
  - name: Metrics
  - name: Metric Points
  - name: Schedules
  - name: Schedule Updates
paths:
  /incident-templates:
    post:
      tags:
        - Incident Templates
      summary: Create Incident Template
      operationId: cachet.api.incident-templates.store
      requestBody:
        description: '`CreateIncidentTemplateRequestData`'
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateIncidentTemplateRequestData'
      responses:
        '200':
          description: '`IncidentTemplate`'
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/IncidentTemplate'
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/MissingAbilityException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    CreateIncidentTemplateRequestData:
      type: object
      properties:
        name:
          type: string
          maxLength: 255
        template:
          type: string
        engine:
          anyOf:
            - $ref: '#/components/schemas/IncidentTemplateEngineEnum'
            - type: 'null'
      required:
        - name
        - template
      title: CreateIncidentTemplateRequestData
    IncidentTemplate:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - incidentTemplates
        attributes:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
            slug:
              type: string
            template:
              type: string
            engine:
              $ref: '#/components/schemas/IncidentTemplateEngineEnum'
            created:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
            updated:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
          required:
            - id
            - name
            - slug
            - template
            - engine
            - created
            - updated
      required:
        - id
        - type
      title: IncidentTemplate
    IncidentTemplateEngineEnum:
      type: string
      enum:
        - blade
        - twig
      title: IncidentTemplateEngineEnum
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    MissingAbilityException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    http:
      type: http
      scheme: bearer

````