# Updates a fine-tuned model.

**PATCH** `/v1/finetuning/finetuned-models/{id}`

> **Deprecated** — this operation is still served but should not be adopted in new integrations.

Updates the fine-tuned model with the given ID. The model will be updated with the new settings and name provided in the request body.

Base URL: `https://api.cohere.com`

Tags: `/finetuning`

## Authorization

| Option | Scheme | Type | Sent as | Scopes |
| --- | --- | --- | --- | --- |
| Option 1 | `bearerAuth` | `http` | `Authorization: Bearer <token>` | — |

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | FinetunedModel ID. |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `X-Client-Name` | `string` | No | The name of the project that is making the request. |

## Request body

Required. Media type: `application/json`

Information about the fine-tuned model. Must contain name and settings.

### Example request body

```json
{
  "name": "string",
  "settings": {
    "base_model": {
      "base_type": "BASE_TYPE_UNSPECIFIED",
      "name": "string",
      "strategy": "STRATEGY_UNSPECIFIED"
    },
    "dataset_id": "string",
    "hyperparameters": {
      "early_stopping_patience": 0,
      "early_stopping_threshold": 0,
      "learning_rate": 0,
      "lora_alpha": 0,
      "lora_rank": 0,
      "lora_target_modules": "LORA_TARGET_MODULES_UNSPECIFIED",
      "train_batch_size": 0,
      "train_epochs": 0
    },
    "wandb": {
      "api_key": "",
      "entity": "string",
      "project": "string"
    }
  }
}
```

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | A successful response. | `application/json` |
| `400` | Bad Request | `application/json` |
| `401` | Unauthorized | `application/json` |
| `403` | Forbidden | `application/json` |
| `404` | Not Found | `application/json` |
| `500` | Internal Server Error | `application/json` |
| `503` | Status Service Unavailable | `application/json` |

### Example response: 200 — A successful response.

```json
{
  "finetuned_model": {
    "completed_at": "2026-06-09T00:00:00Z",
    "created_at": "2026-06-09T00:00:00Z",
    "creator_id": "string",
    "id": "string",
    "last_used": "2026-06-09T00:00:00Z",
    "name": "string",
    "organization_id": "string",
    "settings": {
      "base_model": {
        "base_type": "BASE_TYPE_UNSPECIFIED",
        "name": "string",
        "strategy": "STRATEGY_UNSPECIFIED",
        "version": "string"
      },
      "dataset_id": "string",
      "hyperparameters": {
        "early_stopping_patience": 0,
        "early_stopping_threshold": 0,
        "learning_rate": 0,
        "lora_alpha": 0,
        "lora_rank": 0,
        "lora_target_modules": "LORA_TARGET_MODULES_UNSPECIFIED",
        "train_batch_size": 0,
        "train_epochs": 0
      },
      "multi_label": true,
      "wandb": {
        "api_key": "",
        "entity": "string",
        "project": "string"
      }
    },
    "status": "STATUS_UNSPECIFIED",
    "updated_at": "2026-06-09T00:00:00Z"
  }
}
```

### Example response: 400 — Bad Request

```json
{
  "message": "string"
}
```

### Example response: 401 — Unauthorized

```json
{
  "message": "string"
}
```

### Example response: 403 — Forbidden

```json
{
  "message": "string"
}
```

### Example response: 404 — Not Found

```json
{
  "message": "string"
}
```

### Example response: 500 — Internal Server Error

```json
{
  "message": "string"
}
```

### Example response: 503 — Status Service Unavailable

```json
{
  "message": "string"
}
```

## Related pages

- [/audio/transcriptions](./tags/audio-transcriptions.md)
- [/batches](./tags/batches.md)
- [/connectors](./tags/connectors.md)
- [/datasets](./tags/datasets.md)
- [/embed-jobs](./tags/embed-jobs.md)
- [/finetuning](./tags/finetuning.md)
- [/models](./tags/models.md)
- [API Reference](../../api.md)
- [Authorize with oAuth](./oauthauthorize-connector.md)
- [Cancel a batch](./cancelbatch.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
