---
title: "Upsert Insights Config"
method: PATCH
path: "/projects/{project_id}/runs/{run_id}/insights-settings"
tags: ["run_insights_settings"]
---

# Upsert Insights Config

`PATCH /projects/{project_id}/runs/{run_id}/insights-settings`

## Path parameters

- `project_id` string, uuid4, required
- `run_id` string, uuid4, required

## Request body

- RunInsightsRequest
  - `insights` RunInsightsSettingsSchema
    - `logstream` LogstreamInsightConfig
      - `enabled` boolean — Whether logstream insights are enabled for this run.
      - `start_time` string, date-time, nullable — Start time for generating logstream insights.

## Response `200`

Successful Response

- RunInsightsResponse
  - `insights` RunInsightsSettingsSchema
    - `logstream` LogstreamInsightConfig
      - `enabled` boolean — Whether logstream insights are enabled for this run.
      - `start_time` string, date-time, nullable — Start time for generating logstream insights.
  - `run_id` string, uuid4, required — The ID of the run this settings belong to.

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-26** `05003e7835a2` — 1 info
  - the endpoint scheme security `ClassicAPIKeyHeader` was added to the API

[Change history](https://skmtc.dev/galileo/apis/galileo-api-server/changes/projects/:project_id/runs/:run_id/insights-settings/patch.md)

---

[API](https://skmtc.dev/galileo/apis/galileo-api-server.md) · [All operations](https://skmtc.dev/galileo/apis/galileo-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/galileo/galileo-api-server/revisions/4bc031507246/schema)
