Create Announcement
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/announcement';const options = { method: 'POST', headers: {'Wink-Version': '2.0', '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 POST \ --url https://api.wink.travel/api/managing-entity/hotel-1/extranet/announcement \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "startDate": "", "endDate": "", "descriptions": [ "" ], "showTitle": false, "showAlways": false }'Create a new announcement
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create announcement for this property identifier
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Start date for when announcement is valid
Example
2022-10-24End date for when announcement is no longer valid
Example
2022-11-25List 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 enabled, the property does not want the title to be displayed
Example
trueWhen enabled, the property wants this announcement always to be displayed
Example
trueResponses
Section titled “ Responses ”Created
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
{}