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.

Response body formats

application/hal+xml

No sample

application/hal+json

Sample:
{
    "Secret": "h43ofah43fuha43hfjlrkeahfa98743gh",
    "UserName": "enterpriseuser123",
    "Created": "2021-07-06T11:06:30.9786158+02:00",
    "OwnerOrgNo": "910494392"
}