---
title: "Ativação de dispositivo móvel"
method: PATCH
path: "/devices/{deviceHash}:activate"
tags: ["Gestão de dispositivos"]
---

# Ativação de dispositivo móvel

`PATCH /devices/{deviceHash}:activate`

## Request

- Base URL: `https://api-mtls.sandbox.bankly.com.br`
- URL: `https://api-mtls.sandbox.bankly.com.br/devices/{deviceHash}:activate`
- Auth: HTTP bearer

<div class="bkly-ref-description">
  <p>Ative um dispositivo móvel, vinculando-o a um cliente (proprietário).</p>
  <span class="bkly-ref-small-stable-tag">stable</span> 
  <span class="bkly-ref-scope-tag">scope: device.activate</span>
</div>

## Path parameters

- `deviceHash` string, required

## Parameters

- `#/paths/~1devices/put/parameters/0` (unresolved $ref)
- `#/paths/~1devices/put/parameters/1` (unresolved $ref)

## Request body

- ActivateDeviceRequest
  - `owner` Owner
    - `document` Document
      - `value` string, nullable
      - `type` 'CPF' | 'CNPJ'

## Response `200`

A requisição foi processada com sucesso.

- DeviceDeactivationResponse
  - `data` DeviceResponse
    - `hash` string, nullable
    - `status` 'INACTIVE' | 'ENABLED' | 'DISABLED' | 'BLOCKED'
    - `createdAt` string, date-time
    - `updatedAt` string, date-time, nullable
    - `owner` Owner
      - `document` Document
        - `value` string, nullable
        - `type` 'CPF' | 'CNPJ'
    - `uniqueId` string, nullable
    - `type` string, nullable
    - `model` string, nullable
    - `brand` string, nullable
    - `totalMemory` integer
    - `pushToken` string, nullable
    - `details` DeviceDetails
      - `system` SystemDetails
        - `name` string, nullable
        - `version` string, nullable
        - `country` string, nullable
        - `locale` string, nullable
        - `buildNumber` string, nullable
        - `fontScale` number, double, nullable
      - `storage` Storage
        - `totalDiskCapacity` integer, nullable
        - `freeDiskStorage` integer, nullable
      - `connection` Connection
        - `carrier` string, nullable
        - `network` Network
          - `ipAddress` string, nullable
          - `macAddress` string, nullable
        - `isAirPlaneMode` boolean, nullable
      - `battery` Battery
        - `level` number, double, nullable
        - `isCharging` boolean, nullable
      - `firstInstallTime` integer, nullable
      - `isPinOrFingerPrint` boolean, nullable
  - `links` Link[], nullable
    - `url` string, nullable
    - `rel` string, nullable
    - `method` string, nullable
  - `meta` object, nullable

## Other responses

- `400` (unresolved $ref)
- `422` (unresolved $ref)
- `500` (unresolved $ref)

---

[API](https://skmtc.dev/bankly/apis/id-one.md) - [All operations](https://skmtc.dev/bankly/apis/id-one/llms.txt) - [OpenAPI document](https://skmtc.dev/bankly/apis/id-one/revisions/7cda227a76f4?raw)
