SharePoint Online API - move a file with BypassApprovePermission parameter

qa ibi 1 Reputation point
2020-12-09T14:08:14.483+00:00

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

method: POST
URL: https://<tenant>.sharepoint.com/sites/my_site/_api/web/getFileByServerRelativePath(decodedurl='<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?

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