| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Update the qrPin. Any user can update their own qrPin without belonging to any administrator role.
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]
Update your own QR Code PIN.
[!INCLUDE me-apis-sign-in-note]
PATCH /me/authentication/qrCodePinMethod/pin/updatepinUpdate another user's QR Code PIN.
[!INCLUDE authentication-methods-apis-users-selfservice]
PATCH /users/{usersId}/authentication/qrCodePinMethod/pin/updatepin| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
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. |
If successful, this action returns a 204 No Content response code.
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]
The following example shows the response.
HTTP/1.1 204 No Content