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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"presigned_url":"\u003cstring\u003e","query_stage_master_key":"\u003cstring\u003e","query_id":"\u003cstring\u003e","smk_id":"\u003clong\u003e"}