Links

Create Trial

Create trial
post
https://studio.edgeimpulse.com/v1
/api/{projectId}/optimize/{jobId}/create-trial
Create trial

Create trial

Parameters
Path
projectId*
integer
Project ID
jobId*
integer
Job ID
Body
Example
Schema
{
"id": "string",
"experiment": "string",
"original_trial_id": "string",
"inputBlocks": [
{
"additionalProp1": {}
}
],
"dspBlocks": [
{
"additionalProp1": {}
}
],
"learnBlocks": [
{
"additionalProp1": {}
}
]
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/{jobId}/create-trial \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"id":"string","experiment":"string","original_trial_id":"string","inputBlocks":[{}],"dspBlocks":[{}],"learnBlocks":[{}]}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"id\":\"string\",\"experiment\":\"string\",\"original_trial_id\":\"string\",\"inputBlocks\":[{}],\"dspBlocks\":[{}],\"learnBlocks\":[{}]}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/{projectId}/optimize/{jobId}/create-trial", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'POST',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/{jobId}/create-trial',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {
id: 'string',
experiment: 'string',
original_trial_id: 'string',
inputBlocks: [{}],
dspBlocks: [{}],
learnBlocks: [{}]
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});