prayer edit api
function to create dict for marshal