def update_state(self, state):
        """
        Set the state of the current checklist item. Returns a new ChecklistItem object.
        """
        checklistitem_json = self.fetch_json(
            uri_path = self.base_uri + '/state',
            http_method = 'PUT',
            query_params = {'value': 'complete' if state else 'incomplete'}
        )

        return self.create_checklist_item(self.idCard, self.idChecklist, checklistitem_json)
def update_state(self, state):
        
        checklistitem_json = self.fetch_json(
            uri_path = self.base_uri + '/state',
            http_method = 'PUT',
            query_params = {'value': 'complete' if state else 'incomplete'}
        )

        return self.create_checklist_item(self.idCard, self.idChecklist, checklistitem_json)
def update_state ( self , state ) : checklistitem_json = self . fetch_json ( uri_path = self . base_uri + '/state' , http_method = 'PUT' , query_params = { 'value' : 'complete' if state else 'incomplete' } ) return self . create_checklist_item ( self . idCard , self . idChecklist , checklistitem_json )
Set the state of the current checklist item. Returns a new ChecklistItem object.
Set the state of the current checklist item . Returns a new ChecklistItem object .