List versions

List versions

Get all versions for this project.

GEThttps://studio.edgeimpulse.com/v1/api/{projectId}/versions
Path parameters
projectId*integer

Project ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

nextVersion*integer
versions*array of object
customLearnBlocks*array of object

If you have any custom learn blocks (e.g. blocks you pushed through Bring Your Own Model), then these are listed here. We use these to show a warning in the UI that these blocks will also be available in a public version.

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/versions', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "versions": [
    {
      "description": "text",
      "bucket": {
        "name": "text",
        "organizationName": "text",
        "path": "text",
        "bucket": "text"
      },
      "created": "2024-07-17T05:35:43.944Z",
      "userName": "text",
      "userPhoto": "text",
      "publicProjectUrl": "text",
      "trainingAccuracy": 0,
      "testAccuracy": 0,
      "totalSamplesCount": "text",
      "license": "text"
    }
  ],
  "customLearnBlocks": [
    {
      "author": "text",
      "name": "text"
    }
  ]
}