---
title: "Changes the status of the training progress."
method: PATCH
path: "/di/v1/models/{model_id}"
tags: ["Models"]
---

# Changes the status of the training progress.

`PATCH /di/v1/models/{model_id}`

Changes the status of the training progress to the given `status` value (currently `halt` only). Halt means the training will be stopped and the last snapshot will be stored and can be retrieved.

## Path parameters

- `model_id` string, required

## Query parameters

- `version` string, required

## Request body

- TrainingUpdate
  - `status` string — The status action to be executed on the training job. (Currently only `halt` is supported.)

## Response `202`

Training successfully halted.

- BasicModel
  - `model_id` string — A unique id of the deep learning model.

## Other responses

- `400` — Incorrect status specified.
- `401` — Unauthorized
- `404` — Model with the given ID not found.

---

[API](https://skmtc.net/webankfintech/apis/prophecis-rest-service.md) · [All operations](https://skmtc.net/webankfintech/apis/prophecis-rest-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webankfintech/prophecis-rest-service/versions/41a1038b5854/schema)
