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

# Start monitor maintenance

> Put the monitor into maintenance: its checks are skipped (no false incidents, no uptime penalty) and its public component reads 'under maintenance'. Pass `until` (ISO 8601) for a bounded window that auto-expires, or send an empty body for open-ended maintenance that stays on until DELETE clears it.



## OpenAPI

````yaml https://www.sentivel.com/api/v1/openapi.json post /monitors/{id}/maintenance
openapi: 3.1.0
info:
  title: Sentivel API
  version: 1.0.0
  description: >-
    Provision and read your Sentivel workspace programmatically: components,
    monitors, status pages and incidents. Authenticate with an org API token
    (create one under Developers → API tokens in the dashboard).
  contact:
    name: Sentivel
    url: https://www.sentivel.com
servers:
  - url: https://www.sentivel.com/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Identity
    description: Who the token is
  - name: Components
    description: Status-page components (status units)
  - name: Monitors
    description: Uptime/HTTP checks
  - name: Status pages
    description: Public status pages
  - name: Incidents
    description: Incidents (read + manual create)
  - name: People
    description: Workspace members
  - name: Integrations
    description: Outbound alert destinations
  - name: On-call
    description: On-call schedules
  - name: Maintenance
    description: Scheduled maintenance windows
paths:
  /monitors/{id}/maintenance:
    post:
      tags:
        - Monitors
      summary: Start monitor maintenance
      description: >-
        Put the monitor into maintenance: its checks are skipped (no false
        incidents, no uptime penalty) and its public component reads 'under
        maintenance'. Pass `until` (ISO 8601) for a bounded window that
        auto-expires, or send an empty body for open-ended maintenance that
        stays on until DELETE clears it.
      operationId: startMonitorMaintenance
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorMaintenance'
      responses:
        '200':
          description: The maintenance state.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      monitorId:
                        type: string
                        format: uuid
                      maintenanceUntil:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      openEnded:
                        type: boolean
        '400':
          description: Validation failed (e.g. `until` in the past).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such monitor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    MonitorMaintenance:
      type: object
      properties:
        until:
          type: string
          format: date-time
          description: >-
            ISO 8601 end time for a bounded window. Omit (or send an empty body)
            for open-ended maintenance, cleared with DELETE.
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - forbidden
                - not_found
                - invalid_request
                - rate_limited
                - conflict
                - internal
            message:
              type: string
            details:
              type: object
          required:
            - code
            - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Sent as `Authorization: Bearer <token>`. Three kinds are accepted: an
        ORG token (`sv_…`), bound to one workspace with a fixed role; a PERSONAL
        token (`svu_…`), which acts as you with your own live role in whichever
        workspace it is pointed at; and an OAUTH access token (`mcp_at_…`) from
        a connected app, limited to the workspaces you granted it. A personal or
        OAuth token names its workspace with the `X-Sentivel-Workspace` header
        (a slug or an id). Without it an OAuth token falls back to the
        connection's primary workspace, while a personal token in more than one
        workspace is rejected `400 invalid_request` with the choices in
        `error.details.workspaces`. Membership is re-read every request, so
        leaving a workspace or revoking the grant takes effect at once.

````