How to create a room in Dynamo

Hi,

Is it possible to create a room/ area via Dynamo if I provide a closed poly curve, a level and a room name?

I want to populate a revit room/ area schedule using such rooms.

Thanks,