userapi.commands updated for the new schema. Sample code added for all apis