SharePoint Online API - move a file with BypassApprovePermission parameter
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?