An upload dataset request is a form sent in a Data Lens REST API request body that points to a CSV file that defines a dataset. See Data Format Guidelines for information about Data Lens data formats and constraints.
The Content-Length header is required in the request. The request body's mime-type is multipart/form-data with one mandatory part with the key
name and the mime-type
It is also possible to append data to existing datasets. In this case, the uploaded data is validated against the dataset schema. To append data instead of replacing the dataset contents, add another form field of type
text containing the key
append and the value
| ||Form||Object indicating a file|