Create Attachment
Create Attachment.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
scratchFileId
ID of the ScratchFile to copy into the Attachment.
generateImagePreview
Whether to generate an image preview for the attachment. Defaults to false.
generatePdfPreview
Whether to generate a PDF preview for the attachment. Defaults to false.
Response
Created
__typename
createdAt
creator
downloadUrl
A pre-signed download URL. The URL may be null if the file did not upload successfully.
id
mimeType
The MIME type of the file, e.g. ‘image/jpeg’
name
uploadStatus
Whether the attachment uploaded successfully, failed to upload or is still uploading.
Allowed values:
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error