Hi @Ashlesha Shirodkar ,
According to this documentation, we have to pass the folder id as the destinationid in the request body.
Or a well known folder name refer this to see well known folder names.
Here processed is a custom folder we have to pass the folder id.
I am able to repro your issue PFB screenshot
To get folder id use the below API
GET /me/mailFolders
GET /users/{id | userPrincipalName}/mailFolders
In the response you will get the folder id.
To move messages to that folder use the below API
POST /me/messages/{id}/move
POST /users/{id | userPrincipalName}/messages/{id}/move
POST /me/mailFolders/{id}/messages/{id}/move
POST /users/{id | userPrincipalName}/mailFolders/{id}/messages/{id}/move
Request body
{
"destinationId": "AAMkADMwZWM4YjM1LTc2YWMtNDUzNi1iZWM3LTQyMTcyYmYyYjY1YgAuAAAAAABJ-2SvtvxuRJrCOoXKw95uAQC82qtrbRdzT5cepwnhZ_EVAACXeWY3AAA="
}
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.