'Update this label.
:param str name: (required), new name of the label
:param str color: (required), color code, e.g., 626262, no leading \'#\'
:returns: bool'

@requires_auth
def update(self, name, color):

    json = None
    if (name and color):
        if (color[0] == u'#'):
            color = color[1:]
        json = self._json(self._patch(self._api, data=dumps({u'name': name, u'color': color})), 200)
    if json:
        self._update_attributes(json)
        return True
    return False
