Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Complete report generation

POST/v1/private/projects/{projectId}/reports/{reportId}/completeComplete report generation

Callback from Ollie to update report status and content after generation.

Parameters

projectIdstring · uuidpathrequired
reportIdstring · uuidpathrequired

Request body

required
application/json
objectReportCompleteRequest
contentstring
failure_reasonstring

Why the report failed. Only 'out_of_credits' is acted on; any other value is recorded but renders as a generic failure.

maxLength 64 · minLength 0

recommended_actionsobject
session_idstring
statusstringrequired

one of "pending", "completed", "failed"

Example request
{
  "content": "string",
  "failure_reason": "string",
  "recommended_actions": {},
  "session_id": "string",
  "status": "completed"
}

Responses

204Report updated
400Status is not terminal
404Report not found
Documentation menu