POST: Create an attachment

This topic provides instructions for using the POST operation to add an attachment.

Overview

To create an attachment instance, perform a POST on the attachment collection, passing a JSON string.

Note: Bulk POSTs are not supported.

Attachments contain two different types of data that can be POSTed: 

  • The attachment’s entity data.

  • The attachment’s binary content.

The REST API supports content types of multipart/form-data.

When supplying the attachment name in the request, extra spaces at the beginning or at the end of the file name are trimmed, and do not cause any errors.

Back to top

Examples

Example: POST request for attachments

Back to top

See also: