POST request to Patch Management API
When trying to initiate a POST request using Python requests library to api/1.3/patch/downloadpatch I get the following response back.
- {"error_description":"No Patches Specified","message_type":"downloadpatch","error_code":"3004","message_version":"1.3","status":"error"}
My code is as follows:
headers = {
"username": "<redacted username>",
"password": "<redatcted password>",
"auth_type": "ad_authentication",
"domainName": "<redacted domain>",
"Authorization":"<redacted auth token>",
"Content-Type": "application/json"
}
x = requests.post(url, headers=headers, data={"patchids":314843}, verify=False)
I am not sure where to put the patch ids in order to download the patch I want. I am sure it is something obvious. Can anybody help?