Update outgoing e-mail

Updates an existing outgoing e-mail integration. Only the parameters you send are changed. Returns the updated integration, or validation errors.

Sending recipients replaces the whole recipient list.

PATCH https://incidents.betterstack.com/api/v2/outgoing-emails/{integration_id}

URL parameters

integration_id
required string

Headers

Authorization
required string
Content-Type
string

Body parameters

name
string
recipients
array
on_incident_started
boolean
on_incident_acknowledged
boolean
on_incident_resolved
boolean
on_incident_reopened
boolean
on_incident_comment
boolean
notify_alongside_primary_responder
boolean
templates
array
200

Response body

{
  "data": {
    "id": "42",
    "type": "outgoing_email",
    "attributes": {
      "name": "Renamed client list",
      "recipients": [
        {
          "email": "new@client.com"
        }
      ],
      "team_name": "My team",
      "paused": false,
      "notify_alongside_primary_responder": true,
      "on_incident_started": true,
      "on_incident_acknowledged": true,
      "on_incident_resolved": true,
      "on_incident_reopened": true,
      "on_incident_comment": true,
      "templates": [
        {
          "incident_stage": "resolved",
          "subject": "Resolved: $NAME",
          "title": null,
          "body": null
        }
      ]
    }
  }
}
422

Response body

{
  "errors": {
    "base": [
      "At least one trigger is required"
    ]
  }
}

Example cURL

Example
curl -X "PATCH" "https://incidents.betterstack.com/api/v2/outgoing-emails/42" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Renamed client list",
  "recipients": [ "new@client.com" ],
  "templates": [
    { "incident_stage": "resolved", "subject": "Resolved: $NAME" }
  ]
}'