original_docstring: Get a particular todolist with it's ID and update it.
docstring: Get a particular todolist with it's ID and update it.
docstring_tokens: Get a particular todolist with it ' s ID and update it .
code: def update_todolist(todolist_id):
      """Get a particular todolist with it's ID and update it."""
      todolist = ToDoList.query.filter_by(todoList_id=todolist_id).first()
      name = request.json.get('name', todolist.name)
      todolist.name = name
      todolist.save()
      return jsonify({
          "message": "The todolist {} has been updated.".format(todolist.name),
          "status": 200
      }), 200
code_tokens: def update_todolist ( todolist_id ) : todolist = ToDoList . query . filter_by ( todoList_id = todolist_id ) . first ( ) name = request . json . get ( 'name' , todolist . name ) todolist . name = name todolist . save ( ) return jsonify ( { "message" : "The todolist {} has been updated." . format ( todolist . name ) , "status" : 200 } ) , 200
short_docstring: Get a particular todolist with it's ID and update it.
short_docstring_tokens: Get a particular todolist with it ' s ID and update it .
comment: """Get a particular todolist with it's ID and update it."""