Restore project to public version

Restore project to public version

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

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/jobs/restore/from-public
Path parameters
projectId*integer

Project ID

Body
projectId*integer

Source project ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/restore/from-public', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated