Update an Email integration

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

PATCH https://betteruptime.com/api/v2/email-integrations/{email_integration_id}

URL parameters

email_integration_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

name
string
*
200

Response 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,
      "call": false,
      "sms": false,
      "email": true,
      "push": true,
      "team_wait": null,
      "recovery_period": 180,
      "email_address": "[email protected]",
      "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
    }
  }
}

Example cURL

curl -X "PATCH" "https://betteruptime.com/api/v2/email-integrations/13755" \
     -H 'Authorization: Bearer YOUR_API_TOKEN' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test Again"
}'
Copied!