---
title: "PUT /v1/announcements/{announcementId}"
method: PUT
path: "/v1/announcements/{announcementId}"
---

# PUT /v1/announcements/{announcementId}

`PUT /v1/announcements/{announcementId}`

Update an announcement.

## Path parameters

- `announcementId` string, uuid, required

## Request body

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

## Response `200`

Announcement updated.

- object
  - `id` string

## Other responses

- `400` — Bad request
- `401` — Not authorized
- `500` — An error occurred

## Changes

- **2024-08-28** `795ad2980be7` — 2 warning, 4 info
  - removed the request property `params/actionLink`
  - removed the request property `params/inset`
  - added the new optional request property `filters`
  - added the new optional request property `params/link`
  - …2 more
- **2024-08-23** `d6bfb6124af3` — 3 warning, 2 info
  - removed the request property `params/filters`
  - removed the request property `params/link`
  - removed the request property `type`
  - added the new optional request property `params/actionLink`
  - …1 more
- **2024-08-21** `0c948c7ad249` — 2 breaking, 3 info
  - 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/content`
  - added the new optional request property `params/filters`
  - …1 more
- **2024-08-20** `7ce9c180a1fe` — 1 breaking, 3 warning, 2 info
  - the `params` request property type changed from `object` to no type
  - removed the request property `params/actionLink`
  - removed the request property `params/content`
  - removed the request property `params/inset`
  - …2 more
- **2023-05-16** `ec1e211b55d9` — 1 breaking
  - added the new path request parameter `announcementId`

[Full history](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/changes/v1/announcements/:announcementId/put.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.dev/nhs/apis/admin-api-nhs-innovation-service/revisions/b7373ed243ff?raw)
