Prepare attachment upload
prepare_attachment_uploadObtain a presigned direct-upload URL for an attachment, enabling client-side file upload before finalizing the attachment.
Instructions
Get a presigned direct-upload URL (fileUpload) → {assetUrl, uploadUrl, headers, issue}. PUT raw bytes to uploadUrl with headers verbatim (client-side), then call create_attachment_from_upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Exact file size in bytes | |
| issue | Yes | Issue identifier or id (for the finalize step) | |
| title | No | Suggested attachment title for finalize | |
| filename | Yes | Filename, e.g. screenshot.png | |
| subtitle | No | Suggested attachment subtitle for finalize | |
| contentType | Yes | MIME type, e.g. image/png |