Drafts (Attachments)

Create draft attachment

Creates an attachment on a draft.

Pre-signed URL

When you create an attachment, the response will include a related URL in the links section. You can use this URL to upload the contents of the attachment. This URL is a Pre-Signed URL from S3 and provides access to upload a file for a limited duration.

Example command to upload an attachment to the related Pre-Signed URL

$ curl --upload-file [full path to file] "[Pre-Signed URL]"
post/drafts/{id}/attachments

Request

  • Base URL: https://api.kustomerapp.com/v1
  • URL: https://api.kustomerapp.com/v1/drafts/{id}/attachments
  • Auth: httpBearer (a scheme the document does not define)

Path parameters

idstring required
Example:58c766aadd4b90110053bd81

Unique draft ID.

Request body

namestring required
contentTypestring required
contentLengthnumber required

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.