SharePoint Online API - move a file with BypassApprovePermission parameter

qa ibi 1 Reputation point

I am using SharePoint Online API to call the end point to move a file

method: POST
URL: https://<tenant>'<filepath>')/moveToUsingPath(decodedurl='<newfilepath>',moveOperations=64)

but I getting this error:
"error" : {
"code" : "-2147024809, System.ArgumentException",
"message" : {
"lang" : "en-US",
"value" : "flags\r\nParameter name: Specified value is not supported for the flags parameter."

Can you help me with this please? why I am getting this error? how can I fix?

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,089 questions
0 comments No comments
{count} votes