def put(self, checklistID, checklist_type): """ Update a checklist item. * Privileges required: **manage** """ validate_privilege(self, 'manage') data = request.json result = update_checklist_item(checklistID, checklist_type, data) return result, 200, security_headers()
def put(self, id): """ Update a checklist item. * Privileges required: **edit** """ data = request.json val_num(id) val_num(data.get('maturity')) val_num(data.get('question_id')) val_alpha_num_special(data.get('add_resources')) val_num(data.get('kb_id')) val_alpha_num(data.get('include_always')) val_alpha_num_special(data.get('content')) validate_privilege(self, 'edit') result = update_checklist_item(id, data) return result, 200, security_headers()