POST /api/v2/conversations/interactions/{id} 409 conflict on wrapupCode

Attempting to set the wrapupCode programmatically via POST /api/v2/conversations/interactions/{id} immediately after the call ends. The request returns a 409 Conflict with message ‘Interaction is currently in state WRAPUP’. The JSON body includes the correct wrapupCodeId. Is there a specific timing constraint or a different endpoint required to update this field while the agent is still in wrapup?