Added POST and PUT validation for path ids.