Hitting a 409 Conflict on the PUT /api/v2/conversations/{conversationId}/wrapup endpoint. The interaction is already marked as ended on the server, so the API refuses to accept the wrap-up code payload. I’ve tried waiting for the conversation:wrapup event to fire before calling the endpoint, but by the time the webhook callback executes, the state is already locked.
Here’s the payload I’m sending:
{
"code": "resolved",
"comment": "Issue fixed via chat"
}
The response body says interactionEnded is true, which makes sense. I know I can’t change the state, but I need to attach this data for reporting. Is there a way to force this, or should I be using a different endpoint like the analytics events API instead? The documentation is vague on post-termination metadata updates.