Setting wrap-up codes via Conversations API after hangup

Trying to set a wrap-up code programmatically after an interaction ends using the Conversations API. Sending a PUT request to /api/v2/conversations/voice/{conversationId}/wrapup with the correct wrapupCode in the body returns a 409 Conflict saying the interaction is already closed. Can’t seem to find a way to force it.