---
title: "Deactivate Device"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/operations/DevicesController_deactivate"
---

> Full API specification: https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598.md

# Deactivate Device

`POST` `/tenants/devices/{id}/deactivate`

Operation ID: `DevicesController_deactivate`

Temporarily disables a device, preventing it from connecting to the network while preserving its configuration and user association. This is useful for security incidents or temporary access restrictions.

## Path parameters

- `id` (string, uuid, required) - The unique identifier (UUID) of the device to deactivate

## Responses

- `200` - Successfully deactivated the device
- `401` - Unauthorized - Invalid or missing authentication token
- `403` - Forbidden - Insufficient permissions to perform this operation.
- `404` - Device not found with the provided ID

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Cipherscale API
  version: "1.0"
servers:
  - url: https://public-api.cipherscale.com/qa
    description: Cipherscale Public API Server
paths:
  /tenants/devices/{id}/deactivate:
    post:
      operationId: DevicesController_deactivate
      summary: Deactivate Device
      description: Temporarily disables a device, preventing it from connecting to the
        network while preserving its configuration and user association. This is
        useful for security incidents or temporary access restrictions.
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the device to deactivate
          schema:
            format: uuid
            type: string
      responses:
        "200":
          description: Successfully deactivated the device
        "401":
          description: Unauthorized - Invalid or missing authentication token
        "403":
          description: Forbidden - Insufficient permissions to perform this operation.
        "404":
          description: Device not found with the provided ID
      tags:
        - Devices
      security:
        - ApiKeyAuth: []
security:
  - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
