# Update Prometheus integration

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


[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/prometheus-integrations/{prometheus_integration_id}"
method = "PATCH"

[[path_param]]
name = "prometheus_integration_id"
description = "The ID of the Prometheus integration you want to update"
required = true
type = "string"

[[body_param]]
name = "name"
description = "The name of the Prometheus 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 Prometheus integration API parameters](https://betterstack.com/docs/uptime/api/prometheus-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 Prometheus integration'''
body = '''{
  "data": {
    "id": "37",
    "type": "prometheus_integration",
    "attributes": {
      "call": false,
      "sms": false,
      "email": true,
      "team_wait": 180,
      "recovery_period": null,
      "policy_id": null,
      "push": true,
      "name": "Test Again",
      "paused": false,
      "webhook_url": "https://uptime.betterstack.dev/api/v1/prometheus/webhook/[token]",
      "team_name": "Testing"
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "PATCH" "https://uptime.betterstack.com/api/v2/prometheus-integrations/37" \
     -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 Prometheus integration API parameters](https://betterstack.com/docs/uptime/api/prometheus-integrations-response-params/)
[/info]