---
title: "Disable two-factor authentication by id."
method: PATCH
path: "/company/v1/users/{userId}/twofa_disable"
tags: ["usersService"]
---

# Disable two-factor authentication by id.

`PATCH /company/v1/users/{userId}/twofa_disable`

Disable two-factor authentication by id.

## Path parameters

- `userId` integer, required

## Response `200`

OK

- TwoFactorStatusDisabled
  - `status` boolean
  - `message` string

## Other responses

- `401` — Access token is missing or invalid
- `403` — Forbidden
- `404` — Resource not found

---

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