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

# Create a new maintenance window



## OpenAPI

````yaml /openapi.json post /maintenance
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /maintenance:
    post:
      tags:
        - Maintenance
      summary: Create a new maintenance window
      operationId: MaintenanceController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMaintenanceDto'
      responses:
        '201':
          description: The maintenance window has been successfully created.
        '400':
          description: Bad request.
        '403':
          description: Forbidden - Insufficient permissions.
      security:
        - bearer: []
components:
  schemas:
    CreateMaintenanceDto:
      type: object
      properties:
        title:
          type: string
          description: The title of the maintenance window
        description:
          type: string
          description: The description of the maintenance window
        startTime:
          format: date-time
          type: string
          description: The start time of the maintenance window
        endTime:
          format: date-time
          type: string
          description: The end time of the maintenance window
        projectId:
          type: string
          description: The ID of the project this maintenance window belongs to
      required:
        - title
        - description
        - startTime
        - endTime
        - projectId
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````