Delete Notification
const url = 'https://api.wink.travel/api/managing-entity/company-1/message/message-1';const options = {method: 'DELETE', 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 DELETE \ --url https://api.wink.travel/api/managing-entity/company-1/message/message-1 \ --header 'Wink-Version: 2.0'Remove announcement specified by its identifier.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Remove a message that belongs to this company identifier
Example
company-1Message identifier to be removed
Example
message-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.
Owner identifier
ManagingEntity identifier
Owner name
Importance of message
Message type
Recipient type
Message template
Subject of message
Subject of message
Path to feature
AffiliateAccount read announcement
Message marked as removed
Also send email announcement
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "managingEntityIdentifier": "", "name": "", "priority": "HIGH", "type": "ALERT", "recipientType": "USER", "messageTemplateId": "", "subject": "", "body": "", "ctaUrl": "", "read": false, "markedAsRemoved": false, "notifyViaEmail": 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
{}