v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBspans
Update Span
Update a span
patch/spans/{span_id}
Path parameters
span_idstring uuid required
The ID of the span to update
The ID of the span to update
Request body
Example request
{
"name": "my span",
"start_time": "2026-07-24T08:05:19.020130Z",
"type": "email_tool",
"end_time": "2026-07-24T08:05:19.020193Z",
"input": "Hello, world!",
"output": "Hello, world!",
"error": "Exception: This is an error message",
"meta": {
"key": "value"
},
"score": 10
}Response
Successful Response
Example response
{
"name": "my span",
"start_time": "2024-03-20T10:00:00+00:00",
"trace_id": "123e4567-e89b-12d3-a456-426614174000",
"parent_id": "123e4567-e89b-12d3-a456-426614174000",
"type": "email_tool",
"end_time": "2024-03-20T10:00:10+00:00",
"input": "Hello, world!",
"output": "Hello, world!",
"error": "Exception: This is an error message",
"meta": {
"key": "value"
},
"score": 10
}