---
title: "Gets a list of versions of this Model resource"
method: GET
path: "/api/v1/models/{id}/versions"
tags: ["Models"]
---

# Gets a list of versions of this Model resource

`GET /api/v1/models/{id}/versions`

## Path parameters

- `id` integer, required

## Query parameters

- `search` string
- `index` integer
- `pageLength` integer

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- ModelVersionPage
  - `index` integer — Starting index of the current page.
  - `isComplete` boolean — Boolean indicating if more data is available.
  - `totalNumResults` integer — Total number of results.
  - `first` string — URL to first page in results set.
  - `next` string — URL to next page in results set.
  - `prev` string — URL to last page in results set.
  - `data` ModelVersionDump[]
    - `description` string — Description of the Model Version.
    - `model` ModelRef
      - `id` integer — ID for the Model resource.
      - `group` GroupRef
        - `id` integer — ID for the Group resource.
        - `name` string — Name of the Group resource.
        - `url` string — URL for accessing the full Group resource.
      - `url` string — URL for accessing the full Model resource.
      - `name` string, required — Name of the Model resource.
    - `artifact` ArtifactRefDump
      - `id` integer — ID for the Artifact resource.
      - `group` GroupRef
        - `id` integer — ID for the Group resource.
        - `name` string — Name of the Group resource.
        - `url` string — URL for accessing the full Group resource.
      - `url` string — URL for accessing the full Artifact Resource.
    - `versionNumber` integer — The version number of the Model.
    - `createdOn` string, date-time — Timestamp when the Model Version was created.

---

[API](https://skmtc.net/usnistgov/apis/dioptra-rest-api.md) · [All operations](https://skmtc.net/usnistgov/apis/dioptra-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usnistgov/dioptra-rest-api/versions/a73101579c5c/schema)
