POST {who}/messages/{messageId}/attachments/{attachmentId}?fileName={fileName}&attachmentType={attachmentType}&language={language}

Add an attachment to an existing message defined by the message id by uploading the data as a stream

Request Information

Parameters

NameDescriptionAdditional information
who Identifies whose attachments to update (who the user is acting as/on behalf of). Valid values are "my", or an organization number of an organization the user can represent, or "r"<Reportee.ReporteeId>, where the identified reportee may be a person or organization.

Define this parameter in the request URI.

messageId Id of the message for which attachments should be added.

Define this parameter in the request URI.

fileName Name of the file to be added.

Define this parameter in the request URI.

attachmentType The type of attachment being added. This is used to validate the attachment.

Define this parameter in the request URI.

language Language type

Define this parameter in the request URI.

attachmentId No documentation available.

Define this parameter in the request URI.

Request body formats

application/octet-stream

No sample. The content of the body must be a binary data stream.