Delete Notification
DELETE
/api/message/{messageIdentifier}
const url = 'https://api.wink.travel/api/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/message/message-1 \ --header 'Wink-Version: 2.0'Remove announcement specified by its identifier.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” messageIdentifier
required
string
Message identifier to be removed
Example
message-1Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
Document UUID
string
createdDate
Datetime this record was first created
string format: date-time
lastUpdate
Datetime this record was last updated
string format: date-time
version
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.
integer format: int64
userIdentifier
required
Owner identifier
string format: uuid
managingEntityIdentifier
ManagingEntity identifier
string format: uuid
name
Owner name
string
priority
required
Importance of message
string
type
required
Message type
string
recipientType
required
Recipient type
string
messageTemplateId
required
Message template
string
subject
required
Subject of message
string
body
required
Subject of message
string
ctaUrl
Path to feature
string
read
AffiliateAccount read announcement
boolean
markedAsRemoved
Message marked as removed
boolean
notifyViaEmail
Also send email announcement
boolean
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
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}