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

# PUT /v1/announcements/{announcementId}

`PUT /v1/announcements/{announcementId}`

## Request

- Base URL: `https://nhse-${ENV}-innovation-service-admin-functions.azurewebsites.net/api`
- URL: `https://nhse-${ENV}-innovation-service-admin-functions.azurewebsites.net/api/v1/announcements/{announcementId}`
- Auth: none declared

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-29** `a794f49c303c`: 2 breaking, 4 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 `filters`
  - added the new optional request property `params/content`
  - …2 more
- **2024-08-29** `c46ea115c144`: 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
- **2024-08-29** `b94cfe066422`: 4 warning, 2 info
  - removed the request property `filters`
  - removed the request property `params/link`
  - removed the request property `sendEmail`
  - removed the request property `type`
  - …2 more
- **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

[Operation history](https://skmtc.dev/nhs-england/apis/admin-api-nhs-innovation-service/changes/v1/announcements/:announcementId/put.md)

---

[API](https://skmtc.dev/nhs-england/apis/admin-api-nhs-innovation-service.md) - [All operations](https://skmtc.dev/nhs-england/apis/admin-api-nhs-innovation-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nhs-england/apis/admin-api-nhs-innovation-service/revisions/97dbf652314e?raw)
