1. Home
  2. Docs
  3. IoTGtw API Samples
  4. Messaging API (Upstream Application Data)
  5. Flush Messages

Flush Messages

Flush Device Pending Queue
Property Description
Resource URL /customer/v1/{customer_id}/messaging/{messaging_profile_id}/flush
Method POST
Body Messaging Flush Object
Sample Request

Sample Response

Note:
• The flush operation can be used to flush (move) all uplink and downlink messages belonging to a specific device from the pending queue to the shipped queue.
• The device whose message queue is to be flushed can be identified by its: udid or device_id or device_name, imsi or device_ip + service_template_id. When device_name is used all messages belonging to any customer device that is identified by the specified device name are flushed to the shipped queue.
• The transaction_id_list field can be used to specify the specific messages to be flushed by providing the transaction_ids (one or more) of the message records.
Flush a specific message from failed queue to shipped queue
Property Description
Resource URL /customer/v1/{customer_id}/messaging/{messaging_profile_id}/flush
Method POST
Body Messaging Flush Object
Sample Request

Sample Response

Note:
To flush a message from the “failed” queue to the “shipped” queue the transaction_id of the messages to be flushed must be provided in the transaction_id_list array attribute.
Was this article helpful to you? Yes No

How can we help?