Create pre-signed S3 upload link

Create pre-signed S3 upload link

Creates a signed link to securely upload data to s3 bucket directly from the client.

POSThttps://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/dataset/{dataset}/upload-link
Path parameters
organizationId*integer

Organization ID

dataset*string

Dataset name

Body
fileName*string

file name

fileSize*integer

file size in bytes

fileHash*string

hash to identify file changes

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

urlstring

S3 Upload Link

ETagstring

S3 File Tag

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/dataset/{dataset}/upload-link', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "fileName": "text",
      "fileHash": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "url": "text",
  "ETag": "text"
}

Last updated