Update user's signing method

How to update your user's signing method

Request Endpoint: reference

PUT /api/users/{userId}/signing-methods/{signingMethodId}
ParameterParam TypeValueDescription
Signing-MethodHeaderid:valueid: This is the ID of the signing method to update
value: This is the value of the signing method
ParameterParam TypeDescriptionData TypeMandatory
{userId}PathThe ID of the user for whom to update the signing method forStringโœ…
{signingMethodId}PathThis is the ID of the signing method you want to updateStringโœ…
valueBodyThe new value of the signing method. For PIN, the value should be 6 digits. For EMERGENCY_CODE, the value should be 25 characters, or you can leave it blank to autogenerate the code with the correct entropy.StringโŒ

Request Body:

{
  "value": "987654"
}

Response Body:

๐Ÿ‘

The signing method was updated successfully.

{
    "success": true,
    "result": {
        "id": "f3371883-2024-469b-a122-ca22f58ba6b9",
        "type": "PIN",
        "incorrectAttempts": 0,
        "remainingAttempts": 10,
        "lastUsedSuccess": "2023-12-06T12:45:32.018063",
        "hasMasterSecret": true
    }
}