Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.14 KB

File metadata and controls

114 lines (80 loc) · 3.14 KB
title qrPin: updatePin
description Update your own qrPin.
author AanjuSingh
ms.date 04/16/2025
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType

qrPin: updatePin

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Update the qrPin. Any user can update their own qrPin without belonging to any administrator role.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-authentication-methods-apis-write-others]

HTTP request

Update your own QR Code PIN.

[!INCLUDE me-apis-sign-in-note]

PATCH /me/authentication/qrCodePinMethod/pin/updatepin

Update another user's QR Code PIN.

[!INCLUDE authentication-methods-apis-users-selfservice]

PATCH /users/{usersId}/authentication/qrCodePinMethod/pin/updatepin

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the parameters.

The following table lists the parameters that are required when you call this action.

Parameter Type Description
currentPin String the code of current qrPin.
newPin String the code of new qrPin.

Response

If successful, this action returns a 204 No Content response code.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/me/authentication/qrCodePinMethod/pin/updatePin
Content-Type: application/json

{
  "currentPin": "09599786",
  "newPin": "56745755"
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content