Microsoft Graph API发布消息附件

时间:2020-08-23 10:09:00

标签: api graph invoke-restmethod

我正在尝试将附件发布到现有邮件中,但出现错误。

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"
    }
  }
}

0 个答案:

没有答案
相关问题