Change room type from "Discussion" to "Private Group"

I’m wondering if it’s possible to “convert” a room from discussion to private group?

When using REST API to get room information, I can see that room type is p for both discussion and private group. The only difference being that a discussion have an attribute prid (I guess for Parent Room ID) that the private group doesn’t have.

So I was guessing that maybe dropping this prid information from database my do what I want. But honestly I was looking first to something that is less of an hack such as using API to update room settings (but didn’t find any API covering such use case).

Any help would greatly appreciated.