def test_update_item_excluded_cols(self):
        """
        REST Api: Test update item with excluded cols
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model1_data(self.appbuilder.session, 2):
            model1 = (
                self.appbuilder.get_session.query(Model1)
                .filter_by(field_string="test0")
                .one_or_none()
            )
            model_id = model1.id
            item = dict(field_string="test_Put")
            uri = f"api/v1/model1apiexcludecols/{model_id}"
            rv = self.auth_client_put(client, token, uri, item)
            self.assertEqual(rv.status_code, 200)
            model = self.db.session.query(Model1).get(model_id)
            self.assertEqual(model.field_integer, 0)
            self.assertEqual(model.field_float, 0.0)
            self.assertEqual(model.field_date, None)
            self.assertEqual(model.field_string, "test_Put")

            item = dict(field_string="test_Put", field_integer=1000)
            uri = f"api/v1/model1apiexcludecols/{model_id}"
            rv = self.auth_client_put(client, token, uri, item)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(rv.status_code, 422)
            expected_response = {"message": {"field_integer": ["Unknown field."]}}
            self.assertEqual(expected_response, data)

        REST Api: Test update item with excluded cols
        
tests/test_api.py