code: def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None):
          
          route_values = {}
          if name is not None:
              route_values['name'] = self._serialize.url('name', name, 'str')
          query_parameters = {}
          if user_email is not None:
              query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str')
          if check_feature_exists is not None:
              query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool')
          if set_at_application_level_also is not None:
              query_parameters['setAtApplicationLevelAlso'] = self._serialize.query('set_at_application_level_also', set_at_application_level_also, 'bool')
          content = self._serialize.body(state, 'FeatureFlagPatch')
          response = self._send(http_method='PATCH',
                                location_id='3e2b80f8-9e6f-441e-8393-005610692d9c',
                                version='5.0-preview.1',
                                route_values=route_values,
                                query_parameters=query_parameters,
                                content=content)
          return self._deserialize('FeatureFlag', response)
docs: UpdateFeatureFlag.
          [Preview API] Change the state of an individual feature flag for a name
          :param :class:`<FeatureFlagPatch> <azure.devops.v5_0.feature_availability.models.FeatureFlagPatch>` state: State that should be set
          :param str name: The name of the feature to change
          :param str user_email:
          :param bool check_feature_exists: Checks if the feature exists before setting the state
          :param bool set_at_application_level_also:
          :rtype: :class:`<FeatureFlag> <azure.devops.v5_0.feature_availability.models.FeatureFlag>`