When you say duplicate, I assume it is not to duplicate a RAMCommunity object, but to duplicate a communities configuration (permissions, life-cycle ... ). ... No API do do this :-(
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.