MOVE email after reading via MS GRAPH API Error

Mayank Gupta 0 Reputation points
2024-11-20T14:47:16.3666667+00:00

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

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,489 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.