Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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: 

POST

http://servername:portnumber/dvd/glue/api/v3_1/queues/cleanup?sap-client=

800 

clientnumber

JSON body: 

Code Block
languagejson
{
  "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.