Update a span

Update fields on an existing span. Use this to pin spans, add feedback, or update metadata.

Authentication

AuthorizationBearer
API key authentication. Get your API key from https://platform.respan.ai/platform/api-keys

Path parameters

unique_idstringRequired
The unique identifier of the span

Request

This endpoint expects an object.
is_pinnedbooleanOptional
Pin the span for infinite retention. Pinned spans are never deleted by retention TTL.
positive_feedbackbooleanOptional

User feedback. true = positive, false = negative, null = remove.

notestringOptional
Annotation note text.
metadataobjectOptional

Custom key-value pairs to merge into existing metadata.

Response

Span updated successfully