change api to set format using fson post