Hi - I’ve been able to successfully create incidents in the developer V2 API reference site then I would like to resolve the incident with calling the rest API by passing the payload object.
import requests
import json
base_url = ‘https://api.pagerduty.com’
request_headers = {
‘Authorization’: ‘Token token={token}’.format(token=self.token),
‘Content-type’: ‘application/json’
}
update_url=’{}/incidents/{}/resolve’.format(base_url, ‘incident_id’)
r = requests.put(update_url,headers=request_headers )
print(r.json())
So, am getting the not found error as follows.
{‘error’: {‘message’: ‘Not Found’, ‘code’: 2100}}
- I think am doing something wrong, can you please help me out to resolve the incident using rest API.