---
title: "Create a new notice"
method: POST
path: "/v1/notices"
tags: ["notices"]
---

# Create a new notice

`POST /v1/notices`

Record an occurrence of a notice with the specified options.

## Request body

- object
  - `action` 'add', required — The action to perform.
  - `type` 'custom', required — The type of notice to create.
  - `key` string, required — The key for the notice (must follow the "example.com/path" format).
  - `repeat-after` string, duration — [Duration](#duration) after which the notice can be repeated.
  - `data` object — Additional JSON data associated with the notice.

## Response `200`

Notice successfully created.

- PostNoticesResponse
  - `type` string — Response type, "sync".
  - `status-code` integer — HTTP response status code.
  - `status` string — The description of the HTTP status code. See the [IANA list](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml).
  - `result` object
    - `id` string, required — Server-generated unique ID for the notice.

## Changes

- **2025-01-02** `1cb37312be6c` — 1 info
  - endpoint added
- **2024-12-22** `b3903318c3bd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/canonical/apis/pebble-api/changes/v1/notices/post.md)

---

[API](https://skmtc.dev/canonical/apis/pebble-api.md) · [All operations](https://skmtc.dev/canonical/apis/pebble-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/canonical/pebble-api/revisions/a94f353eccac/schema)
