def update_value(self, id_number, new_value, metadata=None):
        """
        Update a canned value

        :type id_number: int
        :param id_number: canned value ID number

        :type new_value: str
        :param new_value: New canned value value

        :type metadata: str
        :param metadata: Optional metadata

        :rtype: dict
        :return: an empty dictionary
        """
        data = {
            'id': id_number,
            'new_value': new_value
        }

        if metadata is not None:
            data['metadata'] = metadata

        return self.post('updateValue', data)
def update_value ( self , id_number , new_value , metadata = None ) : data = { 'id' : id_number , 'new_value' : new_value } if metadata is not None : data [ 'metadata' ] = metadata return self . post ( 'updateValue' , data )
Update a canned value

        :type id_number: int
        :param id_number: canned value ID number

        :type new_value: str
        :param new_value: New canned value value

        :type metadata: str
        :param metadata: Optional metadata

        :rtype: dict
        :return: an empty dictionary