---
title: "Update the subscriptions of an alert channel"
method: PUT
path: "/v1/alert-channels/{id}/subscriptions"
tags: ["Alert channels"]
---

# Update the subscriptions of an alert channel

`PUT /v1/alert-channels/{id}/subscriptions`

Update the subscriptions of an alert channel. Use this to add a check to an alert channel so failure and recovery alerts are send out for that check. Note: when passing the subscription object, you can only specify a "checkId" or a "groupId, not both.

## Path parameters

- `id` integer, required

## Headers

- `x-checkly-account` string — Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

## Request body

- AlertChannelSubscriptionCreate
  - `checkId` string, nullable — You can either pass a checkId or a groupId, but not both.
  - `groupId` number, nullable — You can either pass a checkId or a groupId, but not both.
  - `activated` boolean, required

## Response `200`

Successful

- AlertChanelSubscription
  - `id` number
  - `checkId` string, nullable
  - `groupId` number, nullable
  - `activated` boolean, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests

---

[API](https://skmtc.net/checklyhq/apis/checkly-public-api.md) · [All operations](https://skmtc.net/checklyhq/apis/checkly-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/checklyhq/checkly-public-api/revisions/87d29dc7b4fe/schema)
