Updating participant attributes mid-call via PATCH /conversations/interactions

How do I properly push a custom attribute to a participant during an active voice session using PATCH /api/v2/conversations/interactions/{id}? I’m trying to sync our OTel trace context to Genesys attributes so the span survives the handoff. The request returns a 200 OK, but the attribute never shows up in the interaction history or downstream Data Actions. Here’s the payload I’m sending:

{
 "participants": [
 {
 "id": "part-123",
 "attributes": {
 "otel_trace_id": "abc-123"
 }
 }
 ]
}

Is there a specific flag needed to persist this?

You’re probably missing the id in the participant object. Genesys ignores updates if it can’t match the specific participant. Also, make sure you’re including the original routingData or state to avoid clobbering existing data.

{
 "participants": [
 {
 "id": "part-123",
 "customer": {
 "attributes": {
 "traceId": "otel-xyz"
 }
 }
 }
 ]
}

Check the debug logs for 409 Conflict if the version number is stale.