GOKUL NATARAJAN

GOKUL NATARAJAN

  • NA
  • 16
  • 1.9k

Microsoft Graph API - Copy Drive Item

Apr 17 2021 2:53 PM
I am trying to copy a file from OneDrive to SharePoint library using copy drive item end point.
POST https://graph.microsoft.com/v1.0/users/62d38c16-b093-4cc9-b5a7-912979fc9c63/drive/items/0174RCT22BEJPQ4MRJTFBYIYLIJVYGHCPR/copy
 
Body
{
"parentReference": {
"driveId": "b!JPqCibL_70eaegi4UwWuuda37AfZdKtGpIVkNiwZzO9V98bMIqGeSK0IUWeH73Q0",
"id": "01CUVLY756Y2GOVW7725BZO354PWSELRRZ"
},
"name": "abcd.mp4"
}
 
The file is getting copied without any issue. But the response is empty and I want to add some metadata to the file created in destaintion. GUide me in finding the file that got created.

Answers (2)