light-mode-image
Learn
MATTR VII PlatformInboxes

Delete a message

Deletes a message from the requested inbox by providing its ID.

Analytics Events

MESSAGING_INBOX_MESSAGE_DELETE_STARTMESSAGING_INBOX_MESSAGE_DELETE_SUCCESSMESSAGING_INBOX_MESSAGE_DELETE_FAIL

Roles

adminissuer
DELETE/v1/messaging/inboxes/{id}/messages/{messageid}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Requested inbox ID

messageidstring

Requested message ID

Response Body

curl -X DELETE "https://example.vii.au01.mattr.global/v1/messaging/inboxes/string/messages/string"
Empty

{
  "code": "BadRequest",
  "message": "Validation Error",
  "details": [
    {
      "value": "notUUIDvalue",
      "msg": "Invalid value",
      "param": "inboxId",
      "location": "params"
    }
  ]
}

{
  "code": "NotFound",
  "message": "Resource Not Found"
}

How would you rate this page?