Hi @carloshan,
Welcome to Microsoft Q&A, and thank you very much for reaching out.
Based on your description, I tested the same Graph API call in Graph Explorer, and in my environment the request completed successfully without returning the error you encountered.
Unfortunately, my testing environment is limited, so I am not able to fully replicate the exact conditions of your scenario.
That said, if helpful, you can try running the same request in Graph Explorer as a workaround, note that you would need to sign in to your tenant first. Here is the method I used:
PATCH:
https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{documentSetItemId}
Request Body:
{
"parentReference": {
"id": "<destinationFolderItemId>"
},
"name": "<DocumentSetName>"
}
From my research, Document Sets are a special SharePoint content type. When they are moved, SharePoint performs additional internal workflows and metadata operations that do not finish within the normal Graph API request/response timing. Because of this, Graph may return an incorrect error response even though the move actually succeeded.
I also looked for any documentation or community threads describing this behavior, but I was unable to find any references that match what you are seeing.
Given that, I would recommend raising this behavior in the Microsoft GitHub Discussions so other developers and Microsoft engineers can weigh in. They’re best positioned to provide guidance and valuable insights on this topic.
I hope this helps.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.