Links

Restore Project To Version

Restore a project to a certain version. This can only applied to a project without data, and will overwrite your impulse and all settings.
post
https://studio.edgeimpulse.com/v1
/api/{projectId}/jobs/restore
Restore project to version

Restore a project to a certain version. This can only applied to a project without data, and will overwrite your impulse and all settings.

Parameters
Path
projectId*
integer
Project ID
Body
Example
Schema
{
"projectId": 0,
"projectApiKey": "string",
"versionId": 0
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/restore \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"projectId":0,"projectApiKey":"string","versionId":0}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"projectId\":0,\"projectApiKey\":\"string\",\"versionId\":0}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/{projectId}/jobs/restore", 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}/jobs/restore',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {projectId: 0, projectApiKey: 'string', versionId: 0},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});