files
datasets
Upload a file to a specific dataset
Changed onUploads the file, then links it with the dataset. Returns file id as JSON object, or ids with filenames if multiple files are sent. ID can be used to work on the file using the API. Uploaded file can be an XML metadata file to be added to the dataset. If the optional Boolean parameter extract is set to false, it does not send the file for extraction. By default, Boolean parameter extract is set to true.
post/uploadToDataset/{id}
Request
- Base URLhttps://clowder.ncsa.illinois.edu/clowder/api
- Auth
- HTTP basic
- or API key in header X-API-Key
- or API key in query parameter key
Path parameters
idstring required
the dataset id
Query parameters
showPreviewsstring
default as "DatasetLevel"
originalZipFilestring
the UUID string of original zip file
flagsstring
flags for previews
extractboolean
folder_idstring
Request body multipart/form-data
Response
OK
Changes
- info
added the new optional
queryrequest parameterfolder_id
- info
- warning
deleted the
queryrequest parameterfolder_id
- warning