Generate a presigned url and optionally encryption materials.

POST {{baseUrl}}/api/v2/databases/:database/schemas/:schema/stages/:name/files/{{filePath}}:presigned-url

Generate a presigned url and optionally encryption materials for uploading and downloading files.

Request Body

{"mode"=>"download", "expiration_time"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;presigned_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;query_stage_master_key&quot;:&quot;\u003cstring\u003e&quot;,&quot;query_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;smk_id&quot;:&quot;\u003clong\u003e&quot;}