---
title: "Disable a tunnel key"
method: POST
path: "/tunnelkeys/{keyId}/disable/"
tags: ["SIMs (Devices)"]
---

# Disable a tunnel key

`POST /tunnelkeys/{keyId}/disable/`

## Request

- Base URL: `https://dashboard.hologram.io/api/1`
- URL: `https://dashboard.hologram.io/api/1/tunnelkeys/{keyId}/disable/`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/hologram/apis/hologram-rest-api-v1/docs/tunnelkeys/:keyId/disable/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `keyId` integer, required

## Response `200`

OK

- TunnelKeyIdResponse
  - `success` boolean: Indicates whether the request was successful.
  - `data` TunnelKeyIdData
    - `id` integer

## Other responses

- `400`: Invalid key ID
- `401`: Unauthorized
- `403`: Organization does not have tunnel access

---

[API](https://skmtc.dev/hologram/apis/hologram-rest-api-v1.md) - [All operations](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/revisions/1bc07dcd1631?raw)
