# Update a Spike Protection Notification Action

##

PUT /api/0/organizations/{organization\_id\_or\_slug}/notifications/actions/{action\_id}/

Updates a Spike Protection Notification Action.

Notification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry. For example, organization owners and managers can receive an email when a spike occurs.

### Path Parameters

* `organization_id_or_slug`*&#x20;<!-- -->(<!-- -->string<!-- -->)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `action_id`*&#x20;<!-- -->(<!-- -->integer<!-- -->)*

  REQUIRED

  ID of the notification action to retrieve

### Body Parameters

* `trigger_type`*&#x20;<!-- -->(<!-- -->string<!-- -->)*

  REQUIRED

  Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`.

* `service_type`*&#x20;<!-- -->(<!-- -->string<!-- -->)*

  REQUIRED

  Service that is used for sending the notification.

  * `email`
  * `slack`
  * `sentry_notification`
  * `pagerduty`
  * `opsgenie`

* `integration_id`*&#x20;<!-- -->(<!-- -->integer<!-- -->)*

  ID of the integration used as the notification service. See [List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/) to retrieve a full list of integrations.

  Required if **service\_type** is `slack`, `pagerduty` or `opsgenie`.

* `target_identifier`*&#x20;<!-- -->(<!-- -->string<!-- -->)*

  ID of the notification target, like a Slack channel ID.

  Required if **service\_type** is `slack` or `opsgenie`.

* `target_display`*&#x20;<!-- -->(<!-- -->string<!-- -->)*

  Name of the notification target, like a Slack channel name.

  Required if **service\_type** is `slack` or `opsgenie`.

* `projects`*&#x20;<!-- -->(<!-- -->array<!-- -->(string)<!-- -->)*

  List of projects slugs that the Notification Action is created for.

### Scopes

You need to [authenticate via bearer auth token.](/api/auth/)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:read`
* `org:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/notifications/actions/{action_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'
```

RESPONSESCHEMA

```
Copied
{
  "id": "836501735",
  "organizationId": "62848264",
  "serviceType": "sentry_notification",
  "targetDisplay": "default",
  "targetIdentifier": "default",
  "targetType": "specific",
  "triggerType": "spike-protection",
  "projects": [
    4505321021243392
  ]
}
```
