# <a id="bitdrift.public.unary.alerts.v1.UpsertIssuesAlertConfigRequest"></a>UpsertIssuesAlertConfigRequest

**Source definition:** [`src/bitdrift/public/unary/alerts/v1/issue_alerts.proto#L153-L163`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/alerts/v1/issue_alerts.proto#L153-L163>)

Requests creation, update, or deletion of an issues alert configuration.

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| view_id | <span class="proto-type proto-type-primitive">string</span><br><em class="proto-field-annotation">between 1 and 255 chars</em> | The issues view ID that the config is associated with. |
| alert_config | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">alerts</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">IssuesAlertConfig</i>](bitdrift_public_unary_alerts_v1_IssuesAlertConfig.md "bitdrift.public.unary.alerts.v1.IssuesAlertConfig")</span> | If provided, the config will either be created or updated based on the view ID. If not  provided the alert config will be deleted. |

</section>
<p class="h4">Example</p>
```json
{
  "alert_config": {
    "alerts": [
      {
        "alert_uuid": "0197eb79-ef35-72ec-8e9f-91a4123c18c5",
        "common_config": {
          "custom_notification_text": "@checkout-oncall Please investigate.",
          "description": "Triggers when the checkout workflow error rate exceeds the configured threshold.",
          "labels": {
            "key": ""
          },
          "name": "Checkout error rate",
          "notifications": [
            {
              "min_time_between_notifications": "3600s",
              "notification_config": {
                "disabled": false,
                "notification_group": {
                  "name": "engineering-oncall"
                }
              }
            }
          ]
        },
        "condition": {
          "and_conditions": {
            "conditions": [
              {}
            ]
          }
        },
        "disabled": false,
        "per_issue_group": false
      }
    ],
    "new_issue_event_notification": [
      {
        "min_time_between_notifications": "3600s",
        "notification_config": {
          "disabled": false,
          "notification_group": {
            "name": "engineering-oncall"
          }
        }
      }
    ],
    "new_issue_group_notification": [
      {
        "min_time_between_notifications": "3600s",
        "notification_config": {
          "disabled": false,
          "notification_group": {
            "name": "engineering-oncall"
          }
        }
      }
    ]
  },
  "view_id": "123"
}
```

