---
title: "Revoke (deactivate) a DSN"
method: POST
path: "/projects/{project_id}/dsns/{dsn_id}/revoke"
---

# Revoke (deactivate) a DSN

`POST /projects/{project_id}/dsns/{dsn_id}/revoke`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/dsns/{dsn_id}/revoke`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `dsn_id` integer, required

## Response `204`

DSN revoked

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: DSN not found

## Changes

- **2026-07-27** `1b060c0a4ba3`: 4 info
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `dsn` removed
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/dsns/:dsn_id/revoke/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
