---
title: "Create an announcement"
method: POST
path: "/api/v2/announcements"
tags: ["Announcements"]
---

# Create an announcement

`POST /api/v2/announcements`

Create an announcement

## Request body

- CreateAnnouncementBody — Create announcement request body
  - `isDismissible` boolean, required — true if the announcement is dismissible
  - `title` string, required — The title of the announcement
  - `message` string, required — The message of the announcement
  - `startTime` integer, required — The start time of the announcement. This is a Unix timestamp in milliseconds.
  - `endTime` integer — The end time of the announcement. This is a Unix timestamp in milliseconds.
  - `severity` 'info' | 'warning' | 'critical', required — The severity of the announcement

## Response `201`

Created announcement

- AnnouncementResponse — Announcement response
  - `_id` string, required — The ID of the announcement
  - `isDismissible` boolean, required — true if the announcement is dismissible
  - `title` string, required — The title of the announcement
  - `message` string, required — The message of the announcement
  - `startTime` integer, required — The start time of the announcement. This is a Unix timestamp in milliseconds.
  - `endTime` integer — The end time of the announcement. This is a Unix timestamp in milliseconds.
  - `severity` 'info' | 'warning' | 'critical', required — The severity of the announcement
  - `_status` 'active' | 'inactive' | 'scheduled', required — The status of the announcement
  - `_access` AnnouncementAccessRep
    - `denied` AnnouncementAccessDenied[], required
      - `action` string, required
      - `reason` AnnouncementAccessDeniedReason, required
        - `resources` string[] — Resource specifier strings
        - `notResources` string[] — Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field.
        - `actions` ActionSpecifier[] — Actions to perform on a resource
        - `notActions` ActionSpecifier[] — Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field.
        - `effect` 'allow' | 'deny', required — Whether this statement should allow or deny actions on the resources.
        - `role_name` string
    - `allowed` AnnouncementAccessAllowedRep[], required
      - `action` string, required
      - `reason` AnnouncementAccessAllowedReason, required
        - `resources` string[] — Resource specifier strings
        - `notResources` string[] — Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field.
        - `actions` ActionSpecifier[] — Actions to perform on a resource
        - `notActions` ActionSpecifier[] — Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field.
        - `effect` 'allow' | 'deny', required — Whether this statement should allow or deny actions on the resources.
        - `role_name` string
  - `_links` AnnouncementResponseLinks, required
    - `parent` AnnouncementLink, required
      - `href` string
      - `type` string

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `500` — Internal server error

---

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