import requests url = 'https://httpbin.org/patch' payload = { 'website':'softhunt.net', 'courses':['Python','JAVA'] } response = requests.patch(url, data=payload) print(response.json())