> For the complete documentation index, see [llms.txt](https://docs.statuspal.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.statuspal.io/next/developers/api-reference/notices.md). Agents can also search and read this documentation through its [MCP server](https://docs.statuspal.io/~gitbook/mcp).

# Notices

Manage incidents, maintenance events, and info notices

## List notices

> When the status page has an incident history limit, notices that ended before it are left out. They can still be fetched by id.

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"parameters":{"Page":{"in":"query","name":"page","schema":{"type":"integer","default":1,"minimum":1}},"PerPage":{"in":"query","name":"per_page","schema":{"type":"integer","default":20,"maximum":100,"minimum":1}}},"schemas":{"Notice":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"notice_type":{"type":"string","enum":["incident","maintenance","info"]},"maintenance_type":{"type":["string","null"],"enum":["planned","essential",null],"description":"Set on maintenance notices only."},"title":{"type":"string"},"status":{"type":"string","description":"Valid values by `notice_type`:\n- **incident**: `investigating` · `identified` · `monitoring` · `resolved`\n- **maintenance**: `scheduled` · `in_progress` · `verifying` · `completed` · `canceled`\n- **info**: `info`\nA planned maintenance that is still `scheduled` can be canceled by posting an update with status `canceled`. A canceled maintenance keeps `lifecycle: completed` and can't change status again.\n"},"severity":{"type":["string","null"],"enum":["critical","major","minor"]},"lifecycle":{"type":"string","enum":["pending","active","completed"],"readOnly":true},"published":{"type":["boolean","null"]},"retroactive":{"type":"boolean","description":"True when the notice records something that already happened."},"private_note":{"type":["string","null"],"description":"Note for your team. Never shown on the status page."},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"maintenance_reminder_minutes":{"type":["array","null"],"items":{"type":"integer"},"description":"Planned maintenance only: reminders sent this many minutes before it starts."},"maintenance_reminder_times":{"type":["array","null"],"items":{"type":"string","format":"date-time"},"description":"Planned maintenance only, reminders sent at these times."},"maintenance_notify_on_start":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it starts."},"maintenance_notify_on_complete":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it completes."},"latest_update":{"allOf":[{"$ref":"#/components/schemas/NoticeUpdateObject"}]},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"NoticeUpdateObject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"status":{"type":"string","description":"The notice status at the time of this update"},"body":{"type":"string","description":"HTML content of the update, sanitized on save to the editor's formatting (headings, paragraphs, lists, task lists, links, images, tables, code blocks, YouTube embeds, highlight and text colour). Other tags and attributes are removed."},"posted_at":{"type":"string","format":"date-time"},"service_statuses":{"type":"array","description":"The service statuses that were set as part of this timeline entry.","items":{"type":"object","properties":{"service_slug":{"type":"string"},"service_name":{"type":"string"},"container_slug":{"type":["string","null"],"description":"Null for a Global Service."},"container_name":{"type":["string","null"],"description":"Null for a Global Service."},"status":{"type":"string","enum":["ok","minor","major","critical","maintenance"]}}}}}},"PaginationMeta":{"type":"object","properties":{"current_page":{"type":"integer"},"per_page":{"type":"integer"},"total_count":{"type":"integer"},"total_pages":{"type":"integer"}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AccountPendingActivation":{"description":"The account is pending activation. A newly created account must be activated by an administrator before its API key can be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/status_pages/{subdomain}/notices":{"get":{"summary":"List notices","description":"When the status page has an incident history limit, notices that ended before it are left out. They can still be fetched by id.","operationId":"listNotices","tags":["Notices"],"parameters":[{"in":"query","name":"notice_type","schema":{"type":"string","enum":["incident","maintenance","info"]},"description":"Filter by notice type"},{"in":"query","name":"status","schema":{"type":"string"},"description":"Filter by status (e.g. `investigating`, `resolved`, `scheduled`)"},{"$ref":"#/components/parameters/Page"},{"$ref":"#/components/parameters/PerPage"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Notice"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/AccountPendingActivation"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## Create a notice

> Creates a notice. Optionally include \`initial\_update\` to attach the first timeline\
> entry in the same request — this is the recommended approach for opening an incident\
> or scheduling a maintenance window.<br>

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"schemas":{"NoticeCreate":{"type":"object","required":["notice_type","title"],"properties":{"notice_type":{"type":"string","enum":["incident","maintenance","info"]},"maintenance_type":{"type":"string","enum":["planned","essential"],"description":"Required when `notice_type` is `maintenance`. A `planned` maintenance is scheduled ahead and starts at `starts_at`; an `essential` one is already in progress, so its `starts_at` can't be in the future.\n"},"title":{"type":"string","maxLength":255},"severity":{"type":["string","null"],"enum":["critical","major","minor"]},"published":{"type":"boolean","default":false},"retroactive":{"type":"boolean","default":false,"description":"Records an incident that already happened. Requires `starts_at` and an `ends_at` in the past. The initial update's `service_statuses` are kept in the notice's history but do not change the services' current status.\n"},"private_note":{"type":["string","null"],"maxLength":1000,"description":"Note for your team. Never shown on the status page."},"starts_at":{"type":"string","format":"date-time","description":"Required for `incident` and `maintenance` types."},"ends_at":{"type":["string","null"],"format":"date-time","description":"For an `info` notice, `starts_at` and `ends_at` are optional and set the window it is featured in."},"maintenance_reminder_minutes":{"type":"array","maxItems":10,"items":{"type":"integer","minimum":1,"maximum":86400},"description":"Planned maintenance only. Lead times, in minutes before `starts_at`, at which subscribers are reminded. Defaults to the status page's setting. At most 10 reminders in total with `maintenance_reminder_times`."},"maintenance_reminder_times":{"type":"array","items":{"type":"string","format":"date-time"},"description":"Planned maintenance only. Reminder times, each before `starts_at`."},"maintenance_notify_on_start":{"type":"boolean","description":"Planned maintenance only. Notifies subscribers when it starts. Defaults to the status page's setting."},"maintenance_notify_on_complete":{"type":"boolean","description":"Planned maintenance only. Notifies subscribers when it completes. Defaults to the status page's setting."},"initial_update":{"description":"Optional first timeline entry created atomically with the notice.\nRecommended for incidents and maintenance windows.\n","allOf":[{"$ref":"#/components/schemas/NoticeUpdateCreate"}]}}},"NoticeUpdateCreate":{"type":"object","required":["body"],"properties":{"status":{"type":"string","description":"Transitions the notice to this status. Defaults to the current notice status\n(i.e. adds an update without changing status).\n"},"body":{"type":"string","description":"HTML or plain-text content for the update. HTML is sanitized on save to the editor's formatting (headings, paragraphs, lists, task lists, links, images, tables, code blocks, YouTube embeds, highlight and text colour); other tags, attributes, and URLs that are not http, https, mailto or tel are removed. Plain text is stored HTML-escaped.","maxLength":10000},"posted_at":{"type":"string","format":"date-time","description":"Defaults to current time."},"notify":{"type":"boolean","default":true,"description":"Whether to send email/Slack notifications for this update."},"service_statuses":{"type":"array","items":{"$ref":"#/components/schemas/ServiceStatus"},"description":"Sets the live status of one or more services on the status page. Omit to leave\nall service statuses unchanged.\n"}}},"ServiceStatus":{"type":"object","required":["service_slug","status"],"description":"Sets the status of a service. Scoped to a container for a Container Service; unscoped for a Global Service.\n","properties":{"service_slug":{"type":"string"},"container_slug":{"type":"string","description":"Which container to target.\nOmit for a Global Service — it has a single status and no container dimension. Supplying it for a Global Service returns 422.\nFor a Container Service, name the container to target. Supplying a container the service is excluded from, or an unknown slug, returns 422.\n**Deprecated fallback:** omitting it for a Container Service resolves to that service's first container. Retained for backwards compatibility; name the container explicitly instead.\n"},"status":{"type":"string","enum":["ok","minor","major","critical","maintenance"]}}},"NoticeDetail":{"allOf":[{"$ref":"#/components/schemas/Notice"},{"type":"object","properties":{"updates":{"type":"array","items":{"$ref":"#/components/schemas/NoticeUpdateObject"},"description":"Full timeline, ordered newest-first"}}}]},"Notice":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"notice_type":{"type":"string","enum":["incident","maintenance","info"]},"maintenance_type":{"type":["string","null"],"enum":["planned","essential",null],"description":"Set on maintenance notices only."},"title":{"type":"string"},"status":{"type":"string","description":"Valid values by `notice_type`:\n- **incident**: `investigating` · `identified` · `monitoring` · `resolved`\n- **maintenance**: `scheduled` · `in_progress` · `verifying` · `completed` · `canceled`\n- **info**: `info`\nA planned maintenance that is still `scheduled` can be canceled by posting an update with status `canceled`. A canceled maintenance keeps `lifecycle: completed` and can't change status again.\n"},"severity":{"type":["string","null"],"enum":["critical","major","minor"]},"lifecycle":{"type":"string","enum":["pending","active","completed"],"readOnly":true},"published":{"type":["boolean","null"]},"retroactive":{"type":"boolean","description":"True when the notice records something that already happened."},"private_note":{"type":["string","null"],"description":"Note for your team. Never shown on the status page."},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"maintenance_reminder_minutes":{"type":["array","null"],"items":{"type":"integer"},"description":"Planned maintenance only: reminders sent this many minutes before it starts."},"maintenance_reminder_times":{"type":["array","null"],"items":{"type":"string","format":"date-time"},"description":"Planned maintenance only, reminders sent at these times."},"maintenance_notify_on_start":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it starts."},"maintenance_notify_on_complete":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it completes."},"latest_update":{"allOf":[{"$ref":"#/components/schemas/NoticeUpdateObject"}]},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"NoticeUpdateObject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"status":{"type":"string","description":"The notice status at the time of this update"},"body":{"type":"string","description":"HTML content of the update, sanitized on save to the editor's formatting (headings, paragraphs, lists, task lists, links, images, tables, code blocks, YouTube embeds, highlight and text colour). Other tags and attributes are removed."},"posted_at":{"type":"string","format":"date-time"},"service_statuses":{"type":"array","description":"The service statuses that were set as part of this timeline entry.","items":{"type":"object","properties":{"service_slug":{"type":"string"},"service_name":{"type":"string"},"container_slug":{"type":["string","null"],"description":"Null for a Global Service."},"container_name":{"type":["string","null"],"description":"Null for a Global Service."},"status":{"type":"string","enum":["ok","minor","major","critical","maintenance"]}}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AccountPendingActivation":{"description":"The account is pending activation. A newly created account must be activated by an administrator before its API key can be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnprocessableEntity":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/status_pages/{subdomain}/notices":{"post":{"summary":"Create a notice","operationId":"createNotice","tags":["Notices"],"description":"Creates a notice. Optionally include `initial_update` to attach the first timeline\nentry in the same request — this is the recommended approach for opening an incident\nor scheduling a maintenance window.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeCreate"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NoticeDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/AccountPendingActivation"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}}}}
```

## List notice templates

> The workspace's notice templates that can be used on this status page: those for all pages and those for this page, by title.<br>

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"schemas":{"NoticeTemplate":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string","description":"The template's own name."},"notice_type":{"type":"string","enum":["incident","maintenance","info"]},"maintenance_type":{"type":["string","null"],"enum":["planned","essential",null]},"status":{"type":["string","null"],"description":"The step the template applies to."},"severity":{"type":["string","null"]},"notice_title":{"type":["string","null"],"description":"Title it fills in."},"update_description":{"type":["string","null"],"description":"Description it fills in, as HTML."}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AccountPendingActivation":{"description":"The account is pending activation. A newly created account must be activated by an administrator before its API key can be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/status_pages/{subdomain}/notice_templates":{"get":{"summary":"List notice templates","operationId":"listNoticeTemplates","description":"The workspace's notice templates that can be used on this status page: those for all pages and those for this page, by title.\n","tags":["Notices"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NoticeTemplate"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/AccountPendingActivation"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## Upload a file for a notice

> Uploads an image (PNG, JPG, GIF or WebP) or a PDF of up to 5 MB to use in a notice update's body. Put the returned url in an img src or an a href. Images open from their url without signing in, so they show in emails even on a members-only page; PDFs need the same access as the page. Available on Pro and Enterprise. A status page can upload 5 files an hour, 10 a day and 20 every 30 days.<br>

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"schemas":{"NoticeAttachment":{"type":"object","properties":{"id":{"type":"string"},"filename":{"type":"string"},"content_type":{"type":"string","enum":["image/png","image/jpeg","image/gif","image/webp","application/pdf"]},"url":{"type":"string","format":"uri","description":"Where the file opens on the status page."}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnprocessableEntity":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/status_pages/{subdomain}/attachments":{"post":{"summary":"Upload a file for a notice","operationId":"createAttachment","description":"Uploads an image (PNG, JPG, GIF or WebP) or a PDF of up to 5 MB to use in a notice update's body. Put the returned url in an img src or an a href. Images open from their url without signing in, so they show in emails even on a members-only page; PDFs need the same access as the page. Available on Pro and Enterprise. A status page can upload 5 files an hour, 10 a day and 20 every 30 days.\n","tags":["Notices"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The image or PDF. Its type is read from its contents."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeAttachment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The plan doesn't include uploads","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"description":"The status page reached an upload limit","headers":{"Retry-After":{"description":"Seconds until the page can upload again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"retry_at":{"type":"string","format":"date-time","description":"When the page can upload again."}}}]}}}}}}}}}
```

## GET /status\_pages/{subdomain}/notices/{notice\_id}

> Get a notice

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"schemas":{"NoticeDetail":{"allOf":[{"$ref":"#/components/schemas/Notice"},{"type":"object","properties":{"updates":{"type":"array","items":{"$ref":"#/components/schemas/NoticeUpdateObject"},"description":"Full timeline, ordered newest-first"}}}]},"Notice":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"notice_type":{"type":"string","enum":["incident","maintenance","info"]},"maintenance_type":{"type":["string","null"],"enum":["planned","essential",null],"description":"Set on maintenance notices only."},"title":{"type":"string"},"status":{"type":"string","description":"Valid values by `notice_type`:\n- **incident**: `investigating` · `identified` · `monitoring` · `resolved`\n- **maintenance**: `scheduled` · `in_progress` · `verifying` · `completed` · `canceled`\n- **info**: `info`\nA planned maintenance that is still `scheduled` can be canceled by posting an update with status `canceled`. A canceled maintenance keeps `lifecycle: completed` and can't change status again.\n"},"severity":{"type":["string","null"],"enum":["critical","major","minor"]},"lifecycle":{"type":"string","enum":["pending","active","completed"],"readOnly":true},"published":{"type":["boolean","null"]},"retroactive":{"type":"boolean","description":"True when the notice records something that already happened."},"private_note":{"type":["string","null"],"description":"Note for your team. Never shown on the status page."},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"maintenance_reminder_minutes":{"type":["array","null"],"items":{"type":"integer"},"description":"Planned maintenance only: reminders sent this many minutes before it starts."},"maintenance_reminder_times":{"type":["array","null"],"items":{"type":"string","format":"date-time"},"description":"Planned maintenance only, reminders sent at these times."},"maintenance_notify_on_start":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it starts."},"maintenance_notify_on_complete":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it completes."},"latest_update":{"allOf":[{"$ref":"#/components/schemas/NoticeUpdateObject"}]},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"NoticeUpdateObject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"status":{"type":"string","description":"The notice status at the time of this update"},"body":{"type":"string","description":"HTML content of the update, sanitized on save to the editor's formatting (headings, paragraphs, lists, task lists, links, images, tables, code blocks, YouTube embeds, highlight and text colour). Other tags and attributes are removed."},"posted_at":{"type":"string","format":"date-time"},"service_statuses":{"type":"array","description":"The service statuses that were set as part of this timeline entry.","items":{"type":"object","properties":{"service_slug":{"type":"string"},"service_name":{"type":"string"},"container_slug":{"type":["string","null"],"description":"Null for a Global Service."},"container_name":{"type":["string","null"],"description":"Null for a Global Service."},"status":{"type":"string","enum":["ok","minor","major","critical","maintenance"]}}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AccountPendingActivation":{"description":"The account is pending activation. A newly created account must be activated by an administrator before its API key can be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/status_pages/{subdomain}/notices/{notice_id}":{"get":{"summary":"Get a notice","operationId":"getNotice","tags":["Notices"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NoticeDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/AccountPendingActivation"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## DELETE /status\_pages/{subdomain}/notices/{notice\_id}

> Delete a notice

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AccountPendingActivation":{"description":"The account is pending activation. A newly created account must be activated by an administrator before its API key can be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}}},"paths":{"/status_pages/{subdomain}/notices/{notice_id}":{"delete":{"summary":"Delete a notice","operationId":"deleteNotice","tags":["Notices"],"responses":{"204":{"description":"Deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/AccountPendingActivation"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## Update a notice

> Updates notice metadata (title, severity, scheduled times, published flag).\
> To move the status forward and add a timeline entry, use the Notice Updates resource.<br>

```json
{"openapi":"3.1.0","info":{"title":"StatusPal Public API","version":"1"},"tags":[{"name":"Notices","description":"Manage incidents, maintenance events, and info notices"}],"servers":[{"url":"https://next.statuspal.io/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Organization API key — issue one via the Rails console (management UI coming soon)"}},"schemas":{"NoticePatch":{"type":"object","description":"Edits notice metadata only. Use the Notice Updates resource to change status.","properties":{"title":{"type":"string","maxLength":255},"severity":{"type":["string","null"],"enum":["critical","major","minor"]},"published":{"type":"boolean"},"private_note":{"type":["string","null"],"maxLength":1000},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"}}},"NoticeDetail":{"allOf":[{"$ref":"#/components/schemas/Notice"},{"type":"object","properties":{"updates":{"type":"array","items":{"$ref":"#/components/schemas/NoticeUpdateObject"},"description":"Full timeline, ordered newest-first"}}}]},"Notice":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"notice_type":{"type":"string","enum":["incident","maintenance","info"]},"maintenance_type":{"type":["string","null"],"enum":["planned","essential",null],"description":"Set on maintenance notices only."},"title":{"type":"string"},"status":{"type":"string","description":"Valid values by `notice_type`:\n- **incident**: `investigating` · `identified` · `monitoring` · `resolved`\n- **maintenance**: `scheduled` · `in_progress` · `verifying` · `completed` · `canceled`\n- **info**: `info`\nA planned maintenance that is still `scheduled` can be canceled by posting an update with status `canceled`. A canceled maintenance keeps `lifecycle: completed` and can't change status again.\n"},"severity":{"type":["string","null"],"enum":["critical","major","minor"]},"lifecycle":{"type":"string","enum":["pending","active","completed"],"readOnly":true},"published":{"type":["boolean","null"]},"retroactive":{"type":"boolean","description":"True when the notice records something that already happened."},"private_note":{"type":["string","null"],"description":"Note for your team. Never shown on the status page."},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"maintenance_reminder_minutes":{"type":["array","null"],"items":{"type":"integer"},"description":"Planned maintenance only: reminders sent this many minutes before it starts."},"maintenance_reminder_times":{"type":["array","null"],"items":{"type":"string","format":"date-time"},"description":"Planned maintenance only, reminders sent at these times."},"maintenance_notify_on_start":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it starts."},"maintenance_notify_on_complete":{"type":["boolean","null"],"description":"Planned maintenance only. Notifies subscribers when it completes."},"latest_update":{"allOf":[{"$ref":"#/components/schemas/NoticeUpdateObject"}]},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"NoticeUpdateObject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"status":{"type":"string","description":"The notice status at the time of this update"},"body":{"type":"string","description":"HTML content of the update, sanitized on save to the editor's formatting (headings, paragraphs, lists, task lists, links, images, tables, code blocks, YouTube embeds, highlight and text colour). Other tags and attributes are removed."},"posted_at":{"type":"string","format":"date-time"},"service_statuses":{"type":"array","description":"The service statuses that were set as part of this timeline entry.","items":{"type":"object","properties":{"service_slug":{"type":"string"},"service_name":{"type":"string"},"container_slug":{"type":["string","null"],"description":"Null for a Global Service."},"container_name":{"type":["string","null"],"description":"Null for a Global Service."},"status":{"type":"string","enum":["ok","minor","major","critical","maintenance"]}}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"full_messages":{"type":"array","items":{"type":"string"},"description":"The same validation errors as readable sentences."}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AccountPendingActivation":{"description":"The account is pending activation. A newly created account must be activated by an administrator before its API key can be used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnprocessableEntity":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/status_pages/{subdomain}/notices/{notice_id}":{"patch":{"summary":"Update a notice","operationId":"updateNotice","tags":["Notices"],"description":"Updates notice metadata (title, severity, scheduled times, published flag).\nTo move the status forward and add a timeline entry, use the Notice Updates resource.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePatch"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NoticeDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/AccountPendingActivation"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}}}}
```
