parameters: (self, filter_id,
                        name=None, description=None,
                        jql=None, favourite=None)
return_statement: return Filter(self._options, self._session, raw=raw_filter_json)
docstring: Update a filter and return a filter Resource for it.
  
          :param name: name of the new filter
          :param description: useful human readable description of the new filter
          :param jql: query string that defines the filter
          :param favourite: whether to add this filter to the current user's favorites
docstring_summary: Update a filter and return a filter Resource for it.
docstring_tokens: Update a filter and return a filter Resource for it .
function: def update_filter(self, filter_id,
                        name=None, description=None,
                        jql=None, favourite=None):
          """Update a filter and return a filter Resource for it.
  
          :param name: name of the new filter
          :param description: useful human readable description of the new filter
          :param jql: query string that defines the filter
          :param favourite: whether to add this filter to the current user's favorites
  
          """
          filter = self.filter(filter_id)
          data = {}
          data['name'] = name or filter.name
          data['description'] = description or filter.description
          data['jql'] = jql or filter.jql
          data['favourite'] = favourite or filter.favourite
  
          url = self._get_url('filter/%s' % filter_id)
          r = self._session.put(url, headers={'content-type': 'application/json'},
                                data=json.dumps(data))
  
          raw_filter_json = json.loads(r.text)
          return Filter(self._options, self._session, raw=raw_filter_json)
function_tokens: def update_filter ( self , filter_id , name = None , description = None , jql = None , favourite = None ) : filter = self . filter ( filter_id ) data = { } data [ 'name' ] = name or filter . name data [ 'description' ] = description or filter . description data [ 'jql' ] = jql or filter . jql data [ 'favourite' ] = favourite or filter . favourite url = self . _get_url ( 'filter/%s' % filter_id ) r = self . _session . put ( url , headers = { 'content-type' : 'application/json' } , data = json . dumps ( data ) ) raw_filter_json = json . loads ( r . text ) return Filter ( self . _options , self . _session , raw = raw_filter_json )