message: createReplyAllmessage: createReplyAll

命名空间:microsoft.graphNamespace: microsoft.graph

创建草稿以回复指定邮件的发件人和所有收件人。Create a draft to reply to the sender and all the recipients of the specified message. 然后,可以更新草稿,将回复内容添加到正文,或更改其他邮件属性,或者仅发送草稿。You can then update the draft to add reply content to the body or change other message properties, or, simply send the draft.


要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) Mail.ReadWriteMail.ReadWrite
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) Mail.ReadWriteMail.ReadWrite
应用程序Application Mail.ReadWriteMail.ReadWrite

HTTP 请求HTTP request

POST /me/messages/{id}/createReplyAll
POST /users/{id | userPrincipalName}/messages/{id}/createReplyAll
POST /me/mailFolders/{id}/messages/{id}/createReplyAll
POST /users/{id | userPrincipalName}/mailFolders/{id}/messages/{id}/createReplyAll

请求标头Request headers

名称Name 类型Type 说明Description
AuthorizationAuthorization stringstring Bearer {token}。必需。Bearer {token}. Required.

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.


如果成功,此方法在响应正文中返回 201 Created 响应代码和 Message 对象。If successful, this method returns 201 Created response code and Message object in the response body.


下面是一个如何调用此 API 的示例。Here is an example of how to call this API.


下面是一个请求示例。Here is an example of the request.


下面是一个响应示例。注意:为了简单起见,可能会将此处所示的响应对象截断。将从实际调用中返回所有属性。Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 200 OK
Content-type: application/json
Content-length: 248

  "receivedDateTime": "datetime-value",
  "sentDateTime": "datetime-value",
  "hasAttachments": true,
  "subject": "subject-value",
  "body": {
    "contentType": "",
    "content": "content-value"
  "bodyPreview": "bodyPreview-value"