Added common input validation to "put" and "post" interfaces per CTR-98.