Spans

Update span by id

Update span by id

patch/v1/private/spans/{id}

Path parameters

idstring uuid required

Request body

project_namestring

If null and project_id not specified, Default Project is assumed

project_idstring uuid

If null and project_name not specified, Default Project is assumed

trace_idstring uuid required
parent_span_idstring uuid
namestring
type'general' | 'tool' | 'llm' | 'guardrail'
end_timestring date-time
inputJsonListString
outputJsonListString
metadataJsonListString
modelstring
providerstring
tagsstring[]

Tags

tags_to_addstring[]

Tags to add

tags_to_removestring[]

Tags to remove

usageobject
total_estimated_costnumber
ttftnumber double
source'sdk' | 'experiment' | 'playground' | 'optimization' | 'evaluator'
environmentstring

Response

No Content

Changes

Changed in 3 of the 57 revisions of this API.112

    • added the new evaluator enum value to the request property source

      request-property-enum-value-added

    • added the new optional request property environment

      new-optional-request-property

    • removed the enum value evaluator of the request property source

      request-property-enum-value-removed

    • removed the request property environment

      request-property-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog