Update announcement
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/extranet/announcement/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47';const options = { method: 'PUT', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"startDate":"","endDate":"","descriptions":[""],"showTitle":false,"showAlways":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/extranet/announcement/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "startDate": "", "endDate": "", "descriptions": [ "" ], "showTitle": false, "showAlways": false }'Updates an existing announcement identified by its identifier for the given property. All fields in the request replace the corresponding announcement fields. Requires CONTENT:WRITE on the managing entity.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Unique identifier of the property (managing entity)
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Unique identifier of the announcement to update
Example
b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Date when this announcement becomes active and visible to travelers.
Example
2026-03-01Date when this announcement expires and is no longer displayed.
Example
2026-04-15List of all localized announcements.
object
Use as title or short text description
Example
An example titleLonger text description
Example
This is a longer description in the specified language.Indicate which language this description is written in.
Example
enWhether it was user or system generated.
Example
SYSTEMThe md5 hash of the name, description and language.
When true, the announcement title is displayed to travelers; when false, only the description content is shown.
Example
trueWhen true, the announcement is always visible regardless of booking dates; when false, visibility is restricted to the configured start and end dates.
Example
falseResponses
Section titled “ Responses ”Announcement updated successfully
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Unique identifier of the property (managing entity) for which this announcement is configured.
Date when this announcement becomes active and visible to travelers.
Date when this announcement expires and is no longer displayed.
List of all localized announcements.
object
Use as title or short text description
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
When true, the announcement title is displayed to travelers; when false, only the description content is shown.
When true, the announcement is always visible regardless of booking dates; when false, visibility is restricted to the configured start and end dates.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "hotelIdentifier": "", "startDate": "", "endDate": "", "descriptions": [ "" ], "showTitle": false, "showAlways": false}Invalid request: missing required fields, invalid dates, or endDate not after startDate
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Insufficient permissions: CONTENT:WRITE not granted on the managing entity
object
object
Announcement not found or does not belong to the specified property
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Unique identifier of the property (managing entity) for which this announcement is configured.
Date when this announcement becomes active and visible to travelers.
Date when this announcement expires and is no longer displayed.
List of all localized announcements.
object
Use as title or short text description
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
When true, the announcement title is displayed to travelers; when false, only the description content is shown.
When true, the announcement is always visible regardless of booking dates; when false, visibility is restricted to the configured start and end dates.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "hotelIdentifier": "", "startDate": "", "endDate": "", "descriptions": [ "" ], "showTitle": false, "showAlways": false}Internal Server Error
object
Example generated
{}