我正在尝试将附件发布到现有邮件中,但出现错误。
Invoke-RestMethod -Method Put -Uri "https://graph.microsoft.com/v1.0/users/me/messages/AAMkADNkOT=" -InFile "test.txt" -ContentType 'plain/text' -Headers $headers
错误消息:
Invoke-RestMethod: { "error": { "code": "ErrorInvalidRequest", "message": "The OData request is not supported.", "innerError": { "date": "2020-08-23T09:37:08", "request-id": "2d3f2ee5-793e-4e9f-85fd-8d7a2fa2144" } } }