Dedup key when resolving incidents

Hi,

Where can we find the dedup key when resolving incidents? How would I resolve my incidents with the dedup what are some documentations/code I can use to develop this in Javascript?

To resolve an incident, you just do an update on the incident with the status = resolved and only need the incident ID. There are code examples in the API reference below:

https://developer.pagerduty.com/api-reference/8a0e1aa2ec666-update-an-incident

fetch(“https://api.pagerduty.com/incidents/id”, {
“method”: “PUT”,
“headers”: {
“Content-Type”: “application/json”,
“Accept”: “application/vnd.pagerduty+json;version=2”,
“From”: “”,
“Authorization”: “Token token=FOO”
},
“body”: “{“incident”:{“type”:“incident_reference”,“status”:“resolved”}}”
})
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err);
});