uploadMedia
Upload a media file for this beta project and get an attachmentId to pass to replyToTicket, sendAnnouncement, setTaskMedia, setStepMedia, or setBetaAgreement. The upload target must match the tool you will attach with. Two modes with different size limits: pass data (base64) to upload directly (small files, up to 3145728 bytes), or omit data to receive an uploadUrl (large files such as videos, up to 524288000 bytes) — then HTTP PUT the raw bytes to it sending EXACTLY the headers the response lists (Content-Type and x-goog-content-length-range; missing or different headers make the PUT fail), and use the attachmentId afterwards. Uploading alone changes nothing visible; the file only appears once attached. attachmentIds are single-use, bound to this beta project, and expire after about an hour. Every upload is virus-scanned before it can be attached (inline uploads are scanned immediately; URL-mode uploads are scanned when attached). The response fields differ by mode: inline uploads report sizeBytes and scanStatus, URL-mode uploads report uploadUrl, requiredHeaders, and maxBytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The file content as standard base64 (no data: prefix). Omit to receive a signed uploadUrl instead. | |
| target | Yes | The surface this file will be attached to. Must match the attach tool used next. Target 'agreement' (the beta NDA document for setBetaAgreement) accepts application/pdf only. | |
| mimeType | Yes | The exact MIME type of the file (e.g. image/png, video/mp4, application/pdf). Accepted families: images (jpeg, png, gif, webp, heic), video (mp4, quicktime), and files (pdf, plain text, csv, html, pcap, the zip, gzip, tar, 7z and rar archives, and Microsoft Office documents). | |
| productId | Yes | ID of the beta project to query. Get valid IDs from the listProducts tool. |