Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Purging doesn't work always


I am having a strange behavior where purging do not work correctly every time.

(1) PUT = http://<Servername>:6405/biprws/raylight/v1/documents/33280/dataproviders/DP0?purge=true

The above URL doesn't work, so i tried like below and it worked.

(2) PUT = http://<Servername>:6405/biprws/raylight/v1/documents/33280?purge=true

When i tried the same above URL (2) for another report it did not work. To make it work i have to first execute URL (1) and then URL (2).

Not clear what i should do? Do i have to execute both the URLs?

Appreciate your help.



Former Member

To save the document back to the CMS, the API is:

PUT .../documents/<docId>

If you do not put any body into the request, the document is saved and still remains open in the REST session.  If you have not made any changes to the document, then its state is still "Original" and nothing gets modified.  What the PUT method does depends on the state of the document.  You can retrieve its state with GET .../documents/<docId>.

A document can be in one of 3 states:  Unused: (it has not yet been opened from the server)

                                                          Original: (it has been opened but not modified)

                                                          Modified: (it has been opened and changed)

For a detailed explanation of managing the state of a document, see "Updating the State of a Document" in the documentation (section 8.1.6)


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question