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.

runModelTestingWhileVersioning*boolean

Whether the 'Run model testing while versioning' checkbox should be enabled.

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",
  "nextVersion": 0,
  "versions": [
    {
      "id": 0,
      "version": 0,
      "description": "text",
      "bucket": {
        "id": 0,
        "name": "text",
        "organizationName": "text",
        "path": "text",
        "bucket": "text"
      },
      "created": "2024-12-21T11:58:50.841Z",
      "userId": 0,
      "userName": "text",
      "userPhoto": "text",
      "publicProjectId": 0,
      "publicProjectUrl": "text",
      "trainingAccuracy": 0,
      "testAccuracy": 0,
      "accuracyBasedOnImpulse": "text",
      "totalSamplesCount": "text",
      "license": "text"
    }
  ],
  "customLearnBlocks": [
    {
      "author": "text",
      "name": "text"
    }
  ],
  "runModelTestingWhileVersioning": false
}

Last updated