---
title: "UnSubscribe"
method: DELETE
path: "/NotificationSubscriptions/{id}"
tags: ["NotificationSubscriptions"]
---

# UnSubscribe

`DELETE /NotificationSubscriptions/{id}`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/NotificationSubscriptions/{id}`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/NotificationSubscriptions/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes the specified subscription. It cannot be undone.

## Path parameters

- `id` integer, required

## Query parameters

- `type` 'MSTeams', required

## Response `204`

The subscription is deleted, and the response is intentionally blank.

## Other responses

- `400`: The requested data are not found. <br/>Error codes: 2105 - Operation is not allowed. 502 - Subscription not found
- `401`: The request is not authorized. <br/>Error codes: 504 - Missing or incorrect authentication credentials

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
