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: 'null'};
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 nullUpdates 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 ”Replacement announcement content including multilingual text, display date range and visibility settings
Request payload for creating or updating an announcement on a property, including localized content and display scheduling.
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.
Foundation class for storing multi-language content (names and descriptions) with content change detection throughout the Wink Platform.
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.
Example
d41d8cd98f00b204e9800998ecf8427eExample
{ "name": "Deluxe River View Suite", "description": "Spacious suite with floor-to-ceiling windows overlooking the Chao Phraya River, featuring a king-size bed, private balcony, and marble bathroom.", "language": "en", "creator": "USER", "md5ContentHash": "a3f1c8e2d74b60912a5c3e9b1d7f4e82"}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
falseExample
{ "startDate": "2026-03-01", "endDate": "2026-04-15", "descriptions": [ { "name": "Deluxe River View Suite", "description": "Spacious suite with floor-to-ceiling windows overlooking the Chao Phraya River, featuring a king-size bed, private balcony, and marble bathroom.", "language": "en", "creator": "USER", "md5ContentHash": "a3f1c8e2d74b60912a5c3e9b1d7f4e82" } ], "showTitle": true, "showAlways": false}Responses
Section titled “ Responses ”Announcement updated successfully
Persistent announcement document for a property, containing localized content, display scheduling, and optimistic-locking metadata.
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.
Foundation class for storing multi-language content (names and descriptions) with content change detection throughout the Wink Platform.
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": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51", "createdDate": "2026-01-14T09:30:00", "lastUpdate": "2026-01-14T09:30:00", "version": 1, "hotelIdentifier": "d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69", "startDate": "2026-03-01", "endDate": "2026-04-15", "descriptions": [ { "language": "en", "title": "Welcome", "description": "Welcome to our property." } ], "showTitle": true, "showAlways": false}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable