PATCH
/v1/private/spans/batchBatch update spansUpdate multiple spans
Request body
application/json
objectSpanBatchUpdate
Request to batch update multiple spans
idsarray of string · uuidrequiredList of span IDs to update (max 1000)
Show child attributes
merge_tagsbooleanIf true, merge tags with existing tags instead of replacing them. Default: false
updateobjectrequiredShow child attributes
end_timestring · date-timeenvironmentstringerror_infoobjectShow child attributes
exception_typestringrequiredmessagestringtracebackstringrequiredinputobjectShow child attributes
anyOf · 3 options
Option 1object
Option 2array of object
Option 3string
modelstringnamestringparent_span_idstring · uuidproject_idstring · uuidIf null and project_name not specified, Default Project is assumed
project_namestringIf null and project_id not specified, Default Project is assumed
providerstringsourcestringtagsarray of stringTags
Show child attributes
tags_to_addarray of stringTags to add
Show child attributes
tags_to_removearray of stringTags to remove
Show child attributes
total_estimated_costnumbertrace_idstring · uuidrequiredttftnumber · doubletypestringusageobject{
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"merge_tags": true,
"update": {
"end_time": "2026-06-09T00:00:00Z",
"environment": "string",
"error_info": {
"exception_type": "string",
"message": "string",
"traceback": "string"
},
"input": {},
"metadata": {},
"model": "string",
"name": "string",
"output": {},
"parent_span_id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"provider": "string",
"source": "evaluator",
"tags": [
"string"
],
"tags_to_add": [
"string"
],
"tags_to_remove": [
"string"
],
"total_estimated_cost": 0,
"trace_id": "00000000-0000-0000-0000-000000000000",
"ttft": 0,
"type": "general",
"usage": {
"additionalProp1": 0
}
}
}Responses
objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}