Jump to: navigation, search

RemoveAttachment

This operation is part of the Email API section of the Web Services API.

Overview

Removes an attachment from the specified email.

Request URL /api/v2/me/emails/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName RemoveAttachment
documentId The identity of the document. (required)

Sample

Request

POST api/v2/me/emails/0000Na9B26EF003M 
 
{
 "operationName": "RemoveAttachment", 
 "documentId": "0000Fa92G5HY0J6E"
}

Response

{
  "statusCode": 0
}

Notification

{
   "referenceId": 40,
   "notificationType": "AttachmentRemoved",
   "messageType": "EmailStateChangeMessage",
   "email": {
       "body": "HelloSave",
       "from": "htcc@gplus-w2k3-gf80",
       "attachments": [
       ],
       "uri": "http: //localhost: 8080/api/v2/email/01QG9WAK37H38027",
       "capabilities": [
           "Cancel",
           "Send",
           "AddComment",
           "AttachUserData",
           "UpdateUserData",
           "DeleteUserData",
           "SetDisposition",
           "SetInFocus",
           "Transfer"
       ],
       "to": [
           "qwerty@gplus-w2k3-gf80"
       ],
       "state": "Composing",
       "id": "01QG9WAK37H38027",
       "subject": "Thisisatest"
   }
}

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on January 22, 2016, at 11:56.