---
title: "Get the ModelVersion in given model id"
method: GET
path: "/mf/v1/modelversions/{modelId}"
tags: ["modelStorage"]
---

# Get the ModelVersion in given model id

`GET /mf/v1/modelversions/{modelId}`

Get ModelVersion.

## Path parameters

- `modelId` number, required

## Query parameters

- `query_str` string
- `page` number
- `size` number

## Response `200`

OK

- GetModelVersionRespBase[]
  - `id` number — Id for the ModelVersion.
  - `version` string — Model’s version number.
  - `creation_timestamp` string — Timestamp recorded when this model_version was created.
  - `latest_flag` integer — Timestamp recorded when metadata for this model_version was last updated.
  - `source` string — User that created this model_version.
  - `filepath` string — Running status of this model_version.
  - `model_id` number — Description of this model_version.
  - `enable_flag` integer
  - `training_id` string — The id of training
  - `training_flag` number — The flag that whether generated by model operator.
  - `push_timestamp` string — Timestamp pushed.
  - `push_id` number
  - `file_name` string
  - `params` string
  - `model` ModelBase
    - `id` number — id for the model.
    - `model_name` string — Name for the model.
    - `model_type` string — type of model, eg. tensorflow, sklearn, xgboost
    - `position` integer — Timestamp recorded when metadata for this model was last updated.
    - `creation_timestamp` string — Timestamp recorded when metadata for this model was last updated.
    - `update_timestamp` string — Update time
    - `user_id` number — User that created this model.
    - `group_id` number — Group Id of User.
    - `service_id` number — User that created this model.
    - `reamrk` string — Description of this model
    - `enable_flag` integer — Latest model versions for this model.
    - `model_latest_version_id` number
  - `group` Group
    - `id` number — Id for the Group
    - `name` string — Group's name
    - `group_type` string — Group's type
    - `subsystem_id` number — Group's subsystem id
    - `subsystem_name` string — Group's subsystem name
    - `remarks` string — Group's remarks
    - `department_id` string — Group's department id
    - `department_name` string — Group's department name
    - `cluster_name` string — Group's cluster name
    - `rmb_idc` string
    - `rmb_dcn` string
    - `service_id` number
  - `user` UserInfo
    - `id` number — id for the model.
    - `name` string
    - `gid` number
    - `uid` number
    - `user_type` string
    - `remarks` string
    - `enable_flag` integer
    - `guid_check` integer

## Other responses

- `401` — Unauthorized
- `404` — The Models cannot be found

---

[API](https://skmtc.dev/webankfintech/apis/mf-server.md) · [All operations](https://skmtc.dev/webankfintech/apis/mf-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webankfintech/mf-server/revisions/5ad7fc23d2c6/schema)
