Private
Update a bundle
Update the bundle by providing updated information.
put/bundles/{id}
Headers
If-Matchstring required
The RFC9110 If-Match header requires the provided entity-tag (ETag header value from the previous read request) to match the resources current entity-tag. This prevents the changes from being applied if there have been any changes to the resource since the client last read the resource. If the header value does not match a 409 Conflict error will be returned.
Request body
Example request
{
"bundle_type": "SCHEDULED",
"created_by": {
"email": "publisher@ons.gov.uk"
},
"created_at": "2025-04-04T07:00:00.000Z",
"id": "9e4e3628-fc85-48cd-80ad-e005d9d283ff",
"last_updated_by": {
"email": "publisher@ons.gov.uk"
},
"preview_teams": [
{
"id": "1253e849-01fd-4662-bee2-63253538da93"
}
],
"scheduled_at": "2025-04-04T07:00:00.000Z",
"state": "APPROVED",
"title": "CPI March 2025",
"updated_at": "2025-04-04T07:00:00.000Z",
"managed_by": "WAGTAIL"
}Response
The bundle has been updated
Example response
{
"bundle_type": "SCHEDULED",
"created_by": {
"email": "publisher@ons.gov.uk"
},
"created_at": "2025-04-04T07:00:00.000Z",
"id": "9e4e3628-fc85-48cd-80ad-e005d9d283ff",
"last_updated_by": {
"email": "publisher@ons.gov.uk"
},
"preview_teams": [
{
"id": "1253e849-01fd-4662-bee2-63253538da93"
}
],
"scheduled_at": "2025-04-04T07:00:00.000Z",
"state": "APPROVED",
"title": "CPI March 2025",
"updated_at": "2025-04-04T07:00:00.000Z",
"managed_by": "WAGTAIL"
}