MOVE email after reading via MS GRAPH API Error
Hi All,
I am trying to move a mail to a folder via MS Graph API after reading that mail.
https://learn.microsoft.com/en-us/graph/api/message-move?view=graph-rest-1.0&tabs=http
API tried is
POST https://graph.microsoft.com/v1.0//users/usermailid/messages/AAMkADhAAATs28OAAA=/move
Content-type: application/json
{ "destinationId": "deleteditems" }
I am getting error as :
{
"error": {
"code": "ErrorItemNotFound",
"message": "The specified object was not found in the store., The process failed to get the correct properties."
}
}
I set Authorization bearer token in the header and user has Mail.ReadWrite permission as per API documentation.
Can you please help what could be possible issues?
Thanks & Regards,
Mayank