Download a single file

Download a single file#

Description#

Returns a file with the provided ID, which points to a file meta ID.

GET /api/v1/file/{fileId}/download

Required OAuth Scopes

No OAuth scopes are required to use this endpoint.

Parameters#

Parameter

In

Type

Required

Description

fileId

path

string

true

The unique identifier of the file

Code Samples#

curl -X GET https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download \
    -H 'Accept: */*' \
    -H 'Authorization: Bearer {access-token}'
http GET https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download \
    Accept:*/* \
    Authorization:"Bearer {access-token}"
wget --method=GET "https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download" \
    --output-document -  \ 
    --header 'Accept: */*' \ 
    --header 'Authorization: Bearer {access-token}'
import requests

headers = {
  'Accept': '*/*',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://h.app.wdesk.com/s/wdata/prep/api/v1/file/{fileId}/download', headers = headers)

print(r.json())

Returns#

200 - OK#

undefined

Example Responses#

No example available