# Update a backtest note

`PATCH https://api.cryptohopper.com/v1/backtest/{id}/notes/{note_id}`

Part of [Backtesting](https://www.cryptohopper.com/api-documentation/api-reference/backtesting.md) in the Cryptohopper API reference.

Saves a note on a backtest. The handler stores the title and note as a new note and does not change the note with note_id.

OAuth scope: `read`, `manage`

Requires an active subscription or trial; otherwise the request is refused with 403.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `note_id` | string | yes | Note ID, as returned by Get backtest notes. |
| `id` | string | yes | Backtest ID, as returned by List backtests. |

## Example request

```bash
curl -X PATCH "https://api.cryptohopper.com/v1/backtest/BACKTEST_ID/notes/NOTE_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"First run","note":"Good results on BTC. Try a lower take profit next."}'
```

## Response

Example response (illustrative values):

```json
{
    "data": "Note saved."
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
