Show Announcement
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/announcement/announcement-1';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
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/hotel-1/extranet/announcement/announcement-1 \ --header 'Wink-Version: 2.0'Retrieve an announcement by its identifier
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Show announcement for this property identifier
Example
hotel-1Show data for this announcement identifier
Example
announcement-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
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.
Hotel identifier manager has access to.
Start date for when announcement is valid
End date for when announcement is no longer valid
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 enabled, the property does not want the title to be displayed
When enabled, the property wants this announcement always to be displayed
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
Forbidden
object
object
Internal Server Error
object
Example generated
{}