# Update Agent Insights job

**PATCH** `/v1/private/agent-insights/jobs/{projectId}`

Partially updates the Agent Insights job for a project (e.g. status; never deletes). Returns the updated job, or 404 if none exists.

Base URL: `https://www.comet.com/opik/api`

Tags: `Agent Insights Jobs`

## Authorization

This operation requires no authorization.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | `string` (uuid) | Yes | — |

## Request body

Required. Media type: `application/json`

### Example request body

```json
{
  "status": "disabled"
}
```

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | Job updated | `application/json` |
| `404` | Job not found | — |

### Example response: 200 — Job updated

```json
{
  "created_at": "2026-06-09T00:00:00Z",
  "created_by": "string",
  "id": "00000000-0000-0000-0000-000000000000",
  "last_failed_at": "2026-06-09T00:00:00Z",
  "last_failure_detail": "string",
  "last_failure_reason": "string",
  "last_scan_at": "2026-06-09T00:00:00Z",
  "last_updated_at": "2026-06-09T00:00:00Z",
  "last_updated_by": "string",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "status": "disabled"
}
```

## Related pages

- [Activate a pairing session](./activatepairingsession.md)
- [Add blueprint to existing config](./updateagentconfig.md)
- [Add items to annotation queue](./additemstoannotationqueue.md)
- [Add span comment](./addspancomment.md)
- [Add span feedback score](./addspanfeedbackscore.md)
- [Add thread comment](./addthreadcomment.md)
- [Add trace comment](./addtracecomment.md)
- [Add trace feedback score](./addtracefeedbackscore.md)
- [Agent Configs](./tags/agent-configs.md)
- [Agent Insights](./tags/agent-insights.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.
