Get announcement details
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/extranet/announcement/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --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 'Wink-Version: 2.0'Returns a single announcement by its identifier, including all configured dates, content in all languages, and visibility settings. Requires CONTENT:READ 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 retrieve
Example
b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”The requested announcement
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}Bad Request
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:READ 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
{}