How to properly write a “Patch” endpoint in flask and Pymongo

Solution
@app.route('/update-instructor/', methods=['PATCH'])
def update_one_instructor(id):
    request_params = request.get_json()
    print(request_params)
    # {'first': 'me', 'email': 'email'}  only gives you the things from postman

    updateObject = request_params
    # updateObject = {
    #     "course": course,
    #     "email": email,
    #     "first": first,
    #     "last": last,
    #     "password": password,
    #     "role": role
    # }

    # Continue with your logic


    return "Update Successful"
  {
    "first": "me",
    "email": "email"
  }