# Update PagerDuty integration

Update an existing PagerDuty integration. Send only the parameters you wish to change (eg. `name`).


[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/pager-duty-webhooks/{pager_duty_webhook_id}"
method = "PATCH"

[[path_param]]
name = "pager_duty_webhook_id"
description = "The ID of the PagerDuty integration you want to get."
required = true
type = "string"

[[body_param]]
name = "name"
description = "The name of the PagerDuty integration that you can see in the dashboard."
required = false
type = "string"

[[body_param]]
name = "*"
description = "Any params you'd like to set. See the [list of all PagerDuty integration API parameters](https://betterstack.com/docs/uptime/api/pagerduty-integrations-response-params/) for details."
required = false

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns the PagerDuty integration'''
body = '''{
  "data": {
    "id": "17",
    "type": "pager_duty_webhook",
    "attributes": {
      "name": "Test Again",
      "key": "[key]",
      "team_name": "My team"
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "PATCH" "https://uptime.betterstack.com/api/v2/pager-duty-webhooks/17" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test Again"
}'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all PagerDuty integration API parameters](https://betterstack.com/docs/uptime/api/pagerduty-integrations-response-params/)
[/info]