---
title: "Create or update user 2FA binding"
method: PUT
path: "/v1/users/{user-id}/2fa-bindings/{method-name}"
tags: ["Two-Factor Authentication"]
---

# Create or update user 2FA binding

`PUT /v1/users/{user-id}/2fa-bindings/{method-name}`

Create or update a two-factor authentication method binding for a specific user.
Users can manage their own bindings; managing other users' bindings requires MANAGE_USERS access right.

## Path parameters

- `user-id` integer, required
- `method-name` string, required

## Request body

- object — Method-specific configuration as key-value pairs

## Response `200`

2FA binding updated successfully

## Other responses

- `400` — Invalid user ID or missing method name
- `403` — Access denied (not own user and no MANAGE_USERS right)
- `404` — User not found or unknown 2FA method
- `500` — Internal error

---

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