I’m using your official Python package pdpyras to read incidents and mark them as acknowledged/resolved based on a demo project I built. However, the API (both rest and Events) is always giving me a 400 error.
pdpyras.PDClientError: POST https://events.pagerduty.com/v2/enqueue: API responded with non-success status (400)
I created a Developer account. Then, I created an API key for the account. I confirmed I’m able to read incidents and grab their attributes. However, the acknowledge method is always failing for me.
self.events.acknowledge(dedup_key=incident_key) # fails self.events.acknowledge(dedup_key=incident_id) # fails
I tried both using the incident unique key (32 hex characters string) and the incident ID (7 alphanumeric chars string).
I also searched on your package source code in GitHub in order to understand what should I pass to this method. However you’re using mocks that do not make it clear. See here.
Would you be able to assist me on what should I do after I read an incident from the API (using find method) to getting this incident being acknowledged? The documentation doesn’t seem to make it clear.
dedup_key – The deduplication key of the alert to set to the acknowledged state.
Is it the long ID, the short one or something else?