Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Update Agent Insights job

PATCH/v1/private/agent-insights/jobs/{projectId}Update Agent Insights job

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

Parameters

projectIdstring · uuidpathrequired

Request body

required
application/json
objectAgentInsightsJobUpdate
statusstringrequired

New status for the job

one of "enabled", "disabled"

Example request
{
  "status": "disabled"
}

Responses

200Job updatedapplication/json
objectAgentInsightsJob
created_atstring · date-time
created_bystring
idstring · uuid
last_failed_atstring · date-time
last_failure_detailstring
last_failure_reasonstring
last_scan_atstring · date-time
last_updated_atstring · date-time
last_updated_bystring
project_idstring · uuidrequired
statusstring

one of "enabled", "disabled"

Example response
{
  "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"
}
404Job not found
Documentation menu