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"
   }
}
This page was last edited on January 22, 2016, at 19:56.
Comments or questions about this documentation? Contact us for support!