files
datasets

Upload a file to a specific dataset

Changed on

Uploads 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 URL
    https://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

Filestring binary required

The file to upload to the dataset. if no specific key is provided, will attempt to upload every file. Otherwise, only upload the specific key we were given (e.g. "File")

Response

OK

Changes