import requests
url = "https://web.site.com:1234/api/v3/tasks/36311"
headers = {"technician_key":"D325B206-0000-0000-8001-6F49F7AC0000"}
input_data = '''{
"task": {
"comment": "New info !",
"status": {
"name": "Closed"
}
}
}'''
data = {'input_data': input_data}
response = requests.put(url,headers=headers,data=data,verify=False)