Hi,
I'm currently working on a solution to rotate the password of certain Qlik Replicate [Attunity] endpoints. To do so, for my test I'm trying to send an API request to update element 'password' using the patchEndpoint API with the following request:
http.request("POST", PathEndpointURL, fields= {"file": (json_file, file_data)} ,headers={"%s" % AEMString : "%s" % AEMToken, 'Content-Type': 'application/json'})
My JSON file contains:
[{"op":"replace", "path":"/db_settings/password", "value": 'newpassword'}]
I think I'm using the correct values, however, I'm getting the following error:
HTTPHeaderDict({'Cache-Control': 'no-cache, no-store', 'Content-Length': '0', 'Server': 'Microsoft-HTTPAPI/2.0', 'Application-Status': '500', 'Application-Message': "SYS-E-INVALREQ, Invalid request pattern '/v1/servers/[myserver]/endpoints/[myendpoint]'.", 'Application-Detailed-Message': 'SYS,INVALID_REQUEST_PATTERN,/v1/servers/[myserver]/endpoints/[myendpoint]', 'Date': 'Wed, 03 Aug 2022 20:30:37 GMT'})
I'm using this information: https://help.qlik.com/en-US/enterprise-manager/May2022/Content/EnterpriseManager/EnterpriseManager_A...
I'm using AWS Lambda, to send a POST request with library urllib3. I won't let me send PATCH requests..
Any idea how can I resolve this issue please? Is the API not working anymore? Any other API request like get_servers, get_list_of_tasks, exportAll etc., work fine. Also, testing to replace other elements like database, bucket fail too, so my issue is with the Pattern.
Thanks!