ServiceDesk Plus API task update

ServiceDesk Plus API task update

Hello,

I'm trying to update a task from request though the browser page. It works fine from my python script, but i would like to ue a direct url in my project.  Is there a way to convert put request to url ?

Py code: 

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)

I have tried this, but urls do not work :

https://web.site.com:1234/api/v3/tasks/36311?technician_key=D325B206-0000-0000-8001-6F49F7AC0000&input-data={%20%22task%22:%20{%20%22comment%22:%20%22New%20info%20!%22,%20%22status%22:%20{%20%22name%22:%20%22Closed%22%20}%20}%20}&operation_name=PUT_TASK&format-json

                New to ADSelfService Plus?