POST
/
api
/
organizations
/
{organizationId}
/
data
/
add
Add new data
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/data/add \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'name=<string>' \
  --form bucketId=123 \
  --form 'bucketName=<string>' \
  --form 'dataset=<string>' \
  --form 'bucketPath=<string>' \
  --form 'metadata=<string>'
{
  "success": true,
  "error": "<string>",
  "id": 123
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
integer
required

Organization ID

Body

multipart/form-data
name
string
required
dataset
string
required
metadata
string
required

Key-value pair of metadata (in JSON format)

files[]
file[]
required
bucketId
integer
bucketName
string

Name of the bucket name (as an Edge Impulse name)

bucketPath
string

Optional path in the bucket to create this data item (files are created under this path).

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

id
integer
required

Unique identifier of the created entity.

error
string

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