How to pass parameters to rest api methods

response = requests.post(‘http://localhost:8000/api/method/custom_app.custom_app.doctype.attendance.attendance.add_punch_attendance’, data = data, headers = headers)

should have been data not json

1 Like