Kustomer API

Getting access, Developing, Testing

Back to Kustomer

Create Draft Attachment

Create an attachment on a draft.

Pre-signed URL

When creating 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 which provides access for a limited duration to upload a file.

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

$ curl --upload-file [full path to file] "[Pre-Signed URL]"

Input

type: object properties: parameters: type: object properties: id: type: string description: (Required) Draft ID required: - id title: Parameters data: type: string example: >- "{\n \"name\": \"<string>\",\n \"contentType\": \"<string>\",\n \"contentLength\": \"<number>\"\n}" title: Data

Output

type: object properties: data: type: object properties: id: type: string type: type: string attributes: type: object properties: name: type: string contentType: type: string contentLength: type: string relationships: type: object properties: org: type: object properties: links: type: object properties: self: type: string data: type: object properties: type: type: string id: type: string draft: type: object properties: links: type: object properties: self: type: string data: type: object properties: type: type: string id: type: string links: type: object properties: self: type: string related: type: string