Hello @Akash Sharma Thank you for reaching out. This is happening because the resource type is wrong, the attachment in this case is of type "@odata.type": "#microsoft.graph.fileAttachment" see documentation here: fileattachment
The microsoft.graph.attachment looks like this: attachment
{
"contentType": "string",
"id": "string (identifier)",
"isInline": true,
"lastModifiedDateTime": "String (timestamp)",
"name": "string",
"size": 1024
}
To fix this issue, ensure the type is correct.
Let me know whether this helps, and if you have further questions.