Prepare Attachment Upload
attachment_prepare_uploadPrepare an attachment upload and receive a signed upload plan, enabling external management of upload bytes while using backend-generated signed metadata.
Instructions
Preprocess an attachment upload and return the signed upload plan. Use this when a caller wants to manage the upload bytes outside meegle CLI but still needs backend-generated signed upload metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Total file size in bytes. | |
| field_key | No | Attachment field key for resource_type 15 or 16. | |
| file_name | No | Original file name. | |
| mime_type | No | Mime type such as application/pdf or image/png. | |
| project_key | No | Optional project key for the file target. | |
| work_item_id | No | Existing work item ID when attaching to an existing work item or comment. | |
| resource_type | No | 15 work item field, 16 rich text image, 13 comment attachment, 14 comment image. | |
| work_item_type | No | Work item type key when preparing upload before the work item exists. |