format POST APIs