POST
/
api
/
{projectId}
/
pretrained-model
/
upload
Upload a pretrained model
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/pretrained-model/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'modelFileName=<string>' \
  --form modelFileType=tflite \
  --form 'device=<string>' \
  --form modelFile=@example-file \
  --form representativeFeatures=@example-file
{
  "success": true,
  "error": "<string>",
  "id": 12873488112
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Query Parameters

impulseId
integer

Impulse ID. If this is unset then the default impulse is used.

Body

multipart/form-data

Response

200 - application/json

OK

The response is of type object.