consolided methods in Types model

put the PUT and POST methods together to consolidate
tested, still working OK