Store CSV Wizard uploaded file

Store CSV Wizard uploaded file

Asynchronously called in the CSV Wizard to store the file that the CSV wizard was based on.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/csv-wizard/uploaded-file
Path parameters
projectId*integer

Project ID

Body
file*string (binary)
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/csv-wizard/uploaded-file', {
    method: 'POST',
    headers: {
      "Content-Type": "multipart/form-data"
    },
    body: JSON.stringify({
      "file": "binary"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated