Skip to content

Latest commit

 

History

History
123 lines (91 loc) · 4.81 KB

File metadata and controls

123 lines (91 loc) · 4.81 KB
title Update hardwareOathTokenAuthenticationMethodDevice
description Update the properties of a hardwareOathTokenAuthenticationMethodDevice object.
author luc-msft
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 12/06/2024

Update hardwareOathTokenAuthenticationMethodDevice

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Update the properties of a hardwareOathTokenAuthenticationMethodDevice object. The token needs to unassigned.

[!INCLUDE national-cloud-support]

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-policy-apis-write]

HTTP request

PATCH /directory/authenticationMethodDevices/hardwareOathDevices/{hardwareOathTokenAuthenticationMethodDeviceId}

Request headers

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

Request body

[!INCLUDE table-intro]

Property Type Description
manufacturer String Manufacturer name of the hardware token. Optional.
model String Model name of the hardware token. Optional.
timeIntervalInSeconds Int32 Refresh interval of the 6-digit verification code, in seconds. The possible values are: 30 or 60. Optional.
hashFunction hardwareOathTokenHashFunction Hash function of the hardrware token. The possible values are: hmacsha1 or hmacsha256. Default value is: hmacsha1. Optional.
displayName String Name that can be provided to the Hardware OATH token. Optional.

Response

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

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/directory/authenticationMethodDevices/hardwareOathDevices/{hardwareOathTokenAuthenticationMethodDeviceId}
Content-Type: application/json

{
  "hashFunction": "hmacsha256"
}

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

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

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

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

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

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

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


Response

The following example shows the response.

HTTP/1.1 204 No Content