Hello everyone,
Ref:
https://learn.microsoft.com/en-us/graph/api/driveitem-copy?view=graph-rest-1.0&tabs=http
This API of copy drive item using graph api version 2.3.2 was working fine and since morning without any code change we are facing an issue. It seems that even if we pass parentReference, still it's copying into same directory as source file.
We are copying file from one folder to another folder with new path and name using graph API and kotlin
microsoftGraphClient.drives(documentStorage.driveId).items(fileToCopy.id)
.copy(it.newPath.getFilename(), parentReference)
.buildRequest()
.post()
Above code was working till 18th-April-2022 and not working since 19th-April-2022 morning. It is copying file in same directory as source file instead of copying into new location. We are using msgraph-sdk-java
Can someone look into it and revert?