I am trying to update the moderation status of a sharepoint file through the rest API. The rest of the API will be called from the Java code. I am trying to update it using an http patch request for the graphical API. I am using the following API
and my payload is
The status is updated but is pending again as a new version is created. I have version control enabled in my document library. Is there a way to update the moderation status without being aware again?
** Note: ** I need versions in my library. Therefore, version settings cannot be disabled.