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

# Create maintenance schedule



## OpenAPI

````yaml post /api/v1/projects/{projectId}/om/maintenance
openapi: 3.1.0
info:
  title: PlanSync API
  version: 1.0.0
  description: >
    Customer-facing PlanSync API reference for common integrations.

    Authenticate with a project API key (`x-api-key: psk_…`) on project-scoped
    routes,

    or with a Better Auth session cookie from the signed-in web app.
servers:
  - url: https://api.plansync.dev
    description: Production API origin
  - url: http://localhost:3000
    description: Local app origin (proxied to backend)
security:
  - apiKeyAuth: []
  - cookieAuth: []
tags:
  - name: Health
  - name: Identity
  - name: Workspaces
  - name: Projects
  - name: Files
  - name: Issues
  - name: RFIs
  - name: Punch
  - name: Field Reports
  - name: Proposals
  - name: Operations
  - name: Schedule
  - name: Materials
  - name: Public Portals
  - name: Billing
paths:
  /api/v1/projects/{projectId}/om/maintenance:
    post:
      tags:
        - Operations
      summary: Create maintenance schedule
      parameters:
        - $ref: '#/components/parameters/ProjectId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMaintenanceRequest'
      responses:
        '200':
          description: Created schedule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MaintenanceSchedule'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
  schemas:
    CreateMaintenanceRequest:
      type: object
      properties:
        assetId:
          type: string
        title:
          type: string
        frequency:
          type: string
      required:
        - assetId
        - title
        - frequency
    MaintenanceSchedule:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        assetId:
          type: string
        title:
          type: string
        frequency:
          type: string
      required:
        - id
        - projectId
        - assetId
        - title
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        Project API key (`psk_…`) from Project Settings → API keys.

        Required scopes depend on the route (e.g. `issues:read` for listing
        issues).

        Only works on project-scoped `/api/v1/projects/{projectId}/…` routes.
    cookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Better Auth session cookie from a signed-in browser session.

````