Xbee command to change coordinator/router/end devide configuration

Hello, I'm trying to configure a xbee network with arduino, and I can't find anywhere the AT or API command that allows to change the xbee configuration (coordinator, router or end devide) without using XCTU. Is it possible to do so? Thank you!