Last updated 8 months ago
Add a new file to an existing data item.
Organization ID
Data ID
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/data/{dataId}/add', { method: 'POST', headers: { "Content-Type": "multipart/form-data" }, body: JSON.stringify({ "files[]": [ "binary" ] }), }); const data = await response.json();
{ "success": false, "error": "text" }