For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • Python SDK
    • Reference
    • REST API Client
  • Typescript SDK
    • Overview
    • Opik TS
    • Prompts
    • Opik Query Language (OQL)
  • Rest API
    • Overview
        • POSTAdd thread comment
        • POSTAdd trace comment
        • PUTAdd trace feedback score
        • POSTCreate traces
        • PATCHBatch update traces
        • PATCHBatch update threads
        • PUTClose trace thread(s)
        • GETGet traces by project_name or project_id
        • POSTCreate trace
        • GETGet trace by id
        • DELDelete trace by id
        • PATCHUpdate trace by id
        • POSTDelete thread comments
        • POSTDelete thread feedback scores
        • POSTDelete trace comments
        • POSTDelete trace feedback score
        • POSTDelete trace threads
        • POSTDelete traces
        • GETFind Feedback Score names
        • GETFind Trace Threads Feedback Score names
        • GETGet trace stats
        • GETGet thread comment
        • GETGet trace thread stats
        • GETGet trace comment
        • POSTGet trace thread
        • GETGet trace threads
        • PUTOpen trace thread
        • PUTBatch feedback scoring for threads
        • PUTBatch feedback scoring for traces
        • POSTSearch trace threads
        • POSTSearch traces
        • PATCHUpdate thread
        • PATCHUpdate thread comment by id
        • PATCHUpdate trace comment by id
LogoLogo
Copy to LLMGithubGo to App
Rest APIAPI ReferenceTraces

Update trace by id

PATCH
/v1/private/traces/:id
PATCH
/api/v1/private/traces/:id
$curl -X PATCH http://localhost:5173/api/v1/private/traces/id \
> -H "Content-Type: application/json" \
> -d '{}'
Update trace by id
Was this page helpful?
Previous

Delete thread comments

Next
Built with

Path parameters

idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
project_namestringOptionalformat: "(?s)^\s*(\S.*\S|\S)\s*$"

If null and project_id not specified, Default Project is assumed

project_idstringOptionalformat: "uuid"

If null and project_name not specified, Default Project is assumed

namestringOptional
end_timedatetimeOptional
inputmap from strings to any or list of objects or stringOptional
outputmap from strings to any or list of objects or stringOptional
metadatamap from strings to any or list of objects or stringOptional
tagslist of stringsOptional
Tags
tags_to_addlist of stringsOptional
Tags to add
tags_to_removelist of stringsOptional
Tags to remove
error_infoobjectOptional
thread_idstringOptional
ttftdoubleOptional
sourceenumOptional
Allowed values:
environmentstringOptional0-150 characters