def METHOD_NAME(self):
    api_model = ConfigurableAPI(
        domain=self.domain_name,
        transform_expression=UCRExpression(definition={})
    )
    user = MockUser()
    context = get_evaluation_context(user, 'post', {}, {}, {})
    with self.assertRaises(BadSpecError):
        _execute_generic_api(self.domain_name, user, "device_id", context, api_model)