---
title: "Update MFA preference"
method: PUT
path: "/api/user/{id}/profile/mfa"
tags: ["User Management"]
---

# Update MFA preference

`PUT /api/user/{id}/profile/mfa`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/user/{id}/profile/mfa`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/user/:id/profile/mfa/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the user's multi-factor authentication preference.

## Path parameters

- `id` integer, required

## Request body

- UserUpdateMfaPreferenceRequest
  - `mfa_preference` integer, required

## Response `200`

MFA preference updated

- ProfileMfaUpdateResource
  - `mfa_reference` integer

## Other responses

- `401`: Unauthenticated
- `422`: Validation error

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
