turning on xbee wifi I/O

I know this is very well documented but I am slightly confused. All I would like to do is send a command to the xbee wifi to set an IO line active. What frame type would I need and what would the command be?

That would be a Remote AT command and the command would be dependent upon which DIO line you want to change the state of.