Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

User → Enable 2FA for a user.

AI-generated

Summary

Enable two-factor authentication (2FA) for a specified user by sending a POST request to the /user/{userId}/2fa endpoint with the required request body.

Inputs

  • User ID (required) — The unique identifier of the user for whom to enable 2FA.
  • Body (required) — JSON object to send as the request body, typically including the 'twoFactorSetupRequested' flag set to true to initiate 2FA setup.
  • Options — Optional settings such as 'Raw Response' to return the full API response without splitting arrays into individual items.

Output shape

The operation returns the API response as JSON, which can be either a single JSON object or, if the raw response option is not enabled, arrays split into individual items.

The response shape depends on the 'Raw Response' option. Errors in the request or processing may be returned in an error envelope if 'Continue on Fail' is enabled.

Examples

Example 1: Enable 2FA for a user with ID '12345'

Set 'User ID' to '12345' and pass a body JSON with { "twoFactorSetupRequested": true } to trigger 2FA setup.

Discussion