---
title: "Create a service maintenance window"
method: POST
path: "/api/public/v1/service-maintenance"
tags: ["ServiceMaintenanceResource"]
---

# Create a service maintenance window

`POST /api/public/v1/service-maintenance`

## Request

- Base URL: `https://allquiet.app` (the document declares no server; this is the origin it was published from)
- URL: `https://allquiet.app/api/public/v1/service-maintenance`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/allquiet/apis/all-quiet-public-api/docs/api/public/v1/service-maintenance/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a maintenance window for status-page services.

**Required API key permissions**

- **Scope:** `service-maintenance:create`
- **Accepted key types:** organization API key (org-wide), personal access token (org-wide)
- **Access:** Operates on a single organization. Pass organizationId when your API key spans multiple organizations.
- **Required organization role (user-linked keys only):** Member
- Organization API keys are not subject to organization or team role checks.

## Query parameters

- `organizationId` string, uuid
- `provision` boolean

## Request body

- AllQuietApiPublicServiceMaintenanceServiceMaintenanceResourceCreateRequest
  - `displayName` string, nullable
  - `serviceIds` string[], nullable
  - `timeZoneId` string, nullable
  - `publicDescription` string, nullable
  - `start` string, date-time, nullable
  - `end` string, date-time, nullable

## Response `200`

OK

- AllQuietApiPublicServiceMaintenanceServiceMaintenanceResourceResponse
  - `id` string, uuid
  - `displayName` string, nullable
  - `organizationId` string, uuid
  - `serviceIds` string[], nullable
  - `timeZoneId` string, nullable
  - `start` string, date-time, nullable
  - `end` string, date-time, nullable
  - `publicDescription` string, nullable
  - `isProvisioned` boolean

---

[API](https://skmtc.dev/allquiet/apis/all-quiet-public-api.md) - [All operations](https://skmtc.dev/allquiet/apis/all-quiet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/allquiet/apis/all-quiet-public-api/revisions/bd7da0475359?raw)
