# Log Model

Launch stage: GA

`POST /api/2.0/mlflow/runs/log-model`

**Note:** the [Create a logged model](https://docs.databricks.com/api/workspace/experiments/createloggedmodel) API replaces this endpoint.

 Log a model to an MLflow Run.

API scopes: mlflow

## Request body

- `run_id` (string, optional)
  ID of the run to log under
- `model_json` (string, optional)
  MLmodel file in json format.

## Response

```json
{}
```

