---
title: "Update a device"
method: PUT
path: "/sdk/{environmentId}/users/mfa/{mfaDeviceId}"
tags: ["SDK"]
---

# Update a device

`PUT /sdk/{environmentId}/users/mfa/{mfaDeviceId}`

## Path parameters

- `environmentId` string, required
- `mfaDeviceId` string, required

## Request body

- MFAUpdateDeviceRequest
  - `default` boolean, required — Whether or not this is the default MFA device for the user

## Response `204`

Empty response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/versions/aac826315d90/schema)
