Hanzo
OpenapiO11y

Changes a mapper's field context, config or enabled state.

Changes a mapper's field context, config or enabled state. Every field is optional and only the ones sent are applied.

PATCH /v1/o11y/span_mapper_groups/{groupId}/span_mappers/{mapperId}

Addresshttps://api.hanzo.ai/v1/o11y/span_mapper_groups/{groupId}/span_mappers/{mapperId}
MethodPATCH
OperationUpdateSpanMapper
AuthAuthorization: Bearer $HANZO_API_KEY

Changes a mapper's field context, config or enabled state. Every field is optional and only the ones sent are applied.

Callers need the admin role; the runtime's own gate enforces it.

Request

10 fields, body application/json (required).

FieldInTypeRequiredDescription
groupIdpathstringyes
mapperIdpathstringyes
configbodyo11y.SpanMapperConfig
config.sourcesbodyo11y.SpanMapperSource[]
config.sources[].contextbodyany
config.sources[].keybodystring
config.sources[].operationbodyany
config.sources[].prioritybodyinteger
enabledbodyboolean
fieldContextbodyany

Response

StatusBodyMeaning
204no content

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y span_mapper_groups span_mappers update <groupId> <mapperId>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page