---
title: "Update a Model in the given Model ID"
method: PUT
path: "/mf/v1/model/{modelID}"
tags: ["modelStorage"]
---

# Update a Model in the given Model ID

`PUT /mf/v1/model/{modelID}`

Update Model.

## Path parameters

- `modelID` number, required

## Request body

- ModelRequest
  - `model_name` string — Name for the model
  - `model_type` string — Type for the model
  - `file_name` string — File Name
  - `s3_path` string — S3 path
  - `root_path` string — S3 path
  - `child_path` string — S3 path
  - `model_version` ModelVersion
    - `id` number — Id for the ModelVersion.
    - `version` string, required — 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, required — User that created this model_version.
    - `filepath` string, required — 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
  - `group_id` number — Group Id of User.

## Response `200`

OK

## Other responses

- `401` — Unauthorized
- `404` — Model update failed

---

[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)
