POST /queues/cleanup endpoint allows the client toclean up the already processed packages from Queue cluster storage. It supports the following input parameters:
Parameter name | Description | Usage | Type |
---|---|---|---|
queueID | Glue Queue ID (FIFO consumer name) | Mandatory | JSON array object |
All input parameters are case insensitive.
Example of REST API call:
JSON body:
Code Block | ||
---|---|---|
| ||
{ "queueID": "ZTRZTEST_CUSTOMERSFLIGHT_FIFO_CQ" } |
Possible responses:
204 | No data for clean up in Queue. |
---|---|
200 | Clean up successful. Packages deleted from Queue: 10 |
Functionality is implemented in the SAP class /DVD/GL_EXT2_API_QUEUE_CLEANUPQUE_CLN_V3_1
Error handling
Every error message is raised via code 400. The reason for the error is also provided; however further investigation might be needed on the SAP side.