I’m trying to sync some external CRM data into Genesys Cloud while a voice call is actually happening. We have a middleware service listening to the conversation events. When a specific trigger fires, it needs to push an attribute like lead_score onto the participant.
I’m hitting the endpoint /api/v2/conversations/voice/{conversationId}/participants/{participantId} using a PATCH request. The docs say this works for voice, but I keep getting a 400 Bad Request.
Here is the JSON body I’m sending:
{
"attributes": {
"lead_score": "95"
}
}
The error response just says Validation failed. I’ve checked the token and it’s valid. I can read the participant object fine with a GET. Is there a restriction on writing attributes during a live voice session? Or am I missing a header?
This is blocking our WFM adherence logic that relies on these attributes.