---
title: "Resets the 2FA device for a sector user by sector association and user id"
method: PATCH
path: "/v1.0/sector-users/sector-association/{sectorAssociationId}/{userId}/reset-2fa"
tags: ["Sector Users"]
---

# Resets the 2FA device for a sector user by sector association and user id

`PATCH /v1.0/sector-users/sector-association/{sectorAssociationId}/{userId}/reset-2fa`

## Path parameters

- `sectorAssociationId` integer, required
- `userId` string, required

## Response `204`

No Content

## Other responses

- `400` — Bad Request Error Code | Description CCAAUTHORITY1001 | User is not related to sector association
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2024-10-21** `a06468704cbe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/beis/apis/api-documentation/changes/v1.0/sector-users/sector-association/:sectorAssociationId/:userId/reset-2fa/patch.md)

---

[API](https://skmtc.dev/beis/apis/api-documentation.md) · [All operations](https://skmtc.dev/beis/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beis/api-documentation/revisions/f5f4d893b86b/schema)
