---
title: "POST /v1/announcements"
method: POST
path: "/v1/announcements"
---

# POST /v1/announcements

`POST /v1/announcements`

Create an announcement.

## Request body

- object
  - `title` string, required — Title of the announcement
  - `userRoles` string[]
  - `params` object
    - `content` string, required
    - `link` object
      - `label` string
      - `url` string
  - `startsAt` string, date-time, required
  - `expiresAt` string, date-time
  - `type` 'LOG_IN' | 'HOMEPAGE', required
  - `filters` object[]
    - `section` string, required
    - `question` string, required
    - `answers` string[], required
  - `sendEmail` boolean

## Response `200`

Announcement created.

- object
  - `id` string, uuid, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2024-11-07** `bf0b42ebdc02` — 1 info
  - the response property `id` became required for the status `200`
- **2024-08-28** `795ad2980be7` — 2 breaking, 2 warning, 5 info
  - added the new required request property `type`
  - the request property `params/content` became required
  - removed the request property `params/actionLink`
  - removed the request property `params/inset`
  - …5 more
- **2024-08-23** `d6bfb6124af3` — 4 warning, 5 info
  - removed the request property `filters`
  - removed the request property `params/filters`
  - removed the request property `params/link`
  - removed the request property `type`
  - …5 more
- **2024-08-21** `0c948c7ad249` — 3 breaking, 2 info
  - added the new required request property `params/content`
  - removed `subschema #1, subschema #2` from the `params` request property `anyOf` list
  - the `params` request property type changed from no type to `object`
  - added the new optional request property `params/filters`
  - …1 more
- **2024-08-21** `c46ea115c144` — 1 info
  - added the new optional request property `filters`

[Full history](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/changes/v1/announcements/post.md)

---

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