Purging doesn't work always
I am having a strange behavior where purging do not work correctly every time.
The above URL doesn't work, so i tried like below and it worked.
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.
Daniel Paulsen replied
To save the document back to the CMS, the API is:
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)