# Update email integration

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


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

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

[[body_param]]
name = "name"
description = "The name of the email 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 email integration API parameters](https://betterstack.com/docs/uptime/api/email-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 email integration'''
body = '''{
  "data": {
    "id": "13755",
    "type": "email_integration",
    "attributes": {
      "name": "Test Again",
      "created_at": "2023-01-19T11:17:57.586Z",
      "updated_at": "2023-01-19T11:17:57.586Z",
      "policy_id": null,
      "team_name": "Testing",
      "call": false,
      "sms": false,
      "email": true,
      "push": true,
      "team_wait": null,
      "recovery_period": 180,
      "email_address": "test@incidents.uptime.betterstack.com",
      "paused": false,
      "started_rule_type": "unused",
      "acknowledged_rule_type": "unused",
      "resolved_rule_type": "unused",
      "started_rules": [],
      "acknowledged_rules": [],
      "resolved_rules": [],
      "cause_field": {
        "name": null,
        "special_type": "cause",
        "field_target": "subject",
        "match_type": "match_everything",
        "content": null,
        "content_before": null,
        "content_after": null
      },
      "started_alert_id_field": null,
      "acknowledged_alert_id_field": null,
      "resolved_alert_id_field": null,
      "other_started_fields": null,
      "other_acknowledged_fields": null,
      "other_resolved_fields": null
    }
  }
}'''

[/responses]

#### Example cURL 

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