Utilities API

Download posted data

POST /api/download_data

The posted data is immediately returned as a download with the filename and mime_type provided. Meant to be used to instantiate downloads from javascript

Parameters

Name Description
content Contents of the file you wish to download
filename Name of the file to download
mime_type Mime type of the download

Request

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: _session_id=NEticWJHSkpaMmdUL3EwVllDN2VYTWxpQ1NnK3VzK25xREEzcE5POG50bEhIbmIrczg1c3g0Vkt2aC8zWEN4WHkrQlgvcnc4QWkxUzhBWXB3akRMd2Q3YVJzaE1keHZuZVc2b1RramV0dElmM21FeWlxTUJiSTdmcXVVclpLRFRBOFhvZUptSGgxdkVlaFpBWnJ0M3VpazRTZ3ArQTNuSktPeUc3ZEZEUXVvRlUya2xWN0FkcW5LekcvS05yTytZTVc3dWRxTFVWdkZyaWRjcmpQOFprWkx6S0d3WjloQ1ZLSU1sYzFTUXc0SUFnNXNLSmd1am5HSlFUbjRncThzam5PREdjUmx0eTFWbEFNYkFnZ2MyQzY2aHRUU3lUUTV6djZ2bkw0T0x2SlloL2g2bEJtS2pvblQwc0lkKzQ0S0JqdGpmaUtWYm1oaXAwVDJSMFBNYXI1S1FMSjJ0Yit0bGJiYUJnZi84QkE2Z3lDWWlFd0pycjV3dnpMd3pWbVdFZHZwb3B2N2NkbjlXR0kwbUZsUi9DemRxT1RVcXF0KzB5dW5SRFVhVHpmTT0tLUNGK1l5K2ZDR1hSUlM2azdIVFNOMkE9PQ%3D%3D--46307a459a2f06a0c6633955dbb3bc49f8ca192b

Route

POST /api/download_data

Body

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="downloaded.csv"
Content-Transfer-Encoding: binary
Content-Type: text/csv
Cache-Control: private
ETag: W/"a13a7b2269bc942cf82f6715044a23bc"
Set-Cookie: _session_id=WEMrbXZhQWZUNFFrNm5qZkhtR1NNRGdnTENmZjh2QzFORTBKeHNONTkrRUQ5eE8vT3VhcW9GYVY3OUJnK2xOTlgwY2RCU2krYkRZTy9RU1dya0xrSTBPbUNNcU9jclgyZmtld0xubFQxT0dTK0RiaFdhQ2ZaVWh4MHpERWR1VC9vLzkyaU9VNURZUmZlSmlZcHdZMmtlZXdqUUZOb2loU25RWU9pNkN2MkEwZGcvaG5Oc1I2b2wva3lJZzFIV1k3anJJZFI4eHIrQkV0TUYzMkNTMTdEQklYMlhLN21oL1NvRmRkZE5tWG1IMFpGMTJtcDBIRTBaN0ovWUxnSENkc2hqSzNRazRSV29lRVM2YUNYRHBMVm5TaXBpRjNTVXA2d3BCRndSWjJKc25QeTNSUXhyTk9HUEJielZ0NlYyQ3hGbWppc3ZNWWlGVk83OWhwL3o0MHRiT2ROTUFBUThyazZnM0FEdmNUYnRhWUlpTW54bEoreGxRVmZUV1dYcUl2V2p6VVdVYjdjc0dubEVYZ0RsZDlITmdmemViYXJraGFvRUhreENXUWFHMElMekR1WHZSczJ6cXJVbjM4UEVzSy0tME1vSDZkbk9CdElIUEJzdGNSY1hadz09--3c3fdc430e16538c57778437f768f3035fa6cba6; path=/; HttpOnly
X-Request-Id: 6fcfc167-738f-4b17-9556-747f048e0f70
X-Runtime: 0.070648
Content-Length: 19

Status

200 OK

Body