Skip to main content
POST
/
api
/
organizations
/
{organizationId}
/
custom-block
Upload a custom block
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/custom-block \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form type=transform \
  --form blockId=123 \
  --form tar=@example-file
{
  "success": true,
  "error": "<string>",
  "id": 12873488112
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
integer
required

Organization ID

Body

multipart/form-data
tar
file
required
type
enum<string>
required
Available options:
transform,
deploy,
dsp,
transferLearning
blockId
integer
required

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

id
integer
required

Job identifier. Status updates will include this identifier.

Example:

12873488112

error
string

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

I