Create an upload link
create_upload_linkA short-lived pre-signed PUT URL for uploading content directly. Refuses to mint the link if the key already exists unless overwrite is true. On AWS a link minted without overwrite also refuses, with HTTP 412, to replace an object created after it was minted; elsewhere that check happens only at mint time, and the URL can still overwrite a key created afterward. The PUT must send every header in the result's headers, unchanged: the content headers and userMetadata given here are signed into the URL, and a missing or different header fails the upload. Headers left out take whatever the PUT sends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Full object key. | |
| bucket | Yes | Bucket name. | |
| overwrite | No | Allow the URL to replace an existing object. | |
| contentType | No | Content-Type to store on the object. | |
| cacheControl | No | Cache-Control to store on the object, such as max-age=3600. | |
| connectionId | Yes | Connection id from list_connections. | |
| userMetadata | No | User metadata to store on the object, as a map of name to value. | |
| contentEncoding | No | Content-Encoding to store on the object, such as gzip for a body compressed before upload. | |
| contentLanguage | No | Content-Language to store on the object, such as en-US. | |
| expiresInMinutes | No | How long the URL stays valid, 1-60 minutes (default 15). Values outside that range are clamped, and expiresInMinutes reports what the URL actually got. | |
| contentDisposition | No | Content-Disposition to store on the object, such as attachment; filename="report.pdf". |