Cloud Administration Clear PIN for Hardware Token APICloud Administration Clear PIN for Hardware Token API
The Cloud Administration Clear PIN for Hardware Token API enables Help Desk Administrators to clear the PIN for a hardware token assigned to a user.
Clients calling this API must authenticate themselves by including a JSON web token in the request. For instructions on using this token, see Authentication for the Cloud Administration APIs.
Administrative RolesAdministrative Roles
This API can use an API key associated with either Super Administrator or Help Desk Administrator role. For more information, see Manage the Cloud Administration API Keys.
Software Developer KitSoftware Developer Kit
You can download the API Software Developer Kit (SDK) from Cloud Administration REST API Download.
Request RequirementsRequest Requirements
Use the following information to retrieve a hardware token and clear the PIN.
|Method||Request URL||Response Content Type||Response Body||Response Codes|
|PATCH||/AdminInterface/restapi/v2/users/<userId>/sidTokens/clearPin||application/json||Token details with property||200, 404, 409, 500|
Example Request DataExample Request Data
The following example displays a request.
Authorization: Bearer <JWT token>
Example Request BodyExample Request Body
"tokenSerialNumber" : "1231314525"
Request Property DescriptionsRequest Property Descriptions
The following table shows request property descriptions and other associated information.
|Property||Description||Required?||Max Length||Data Type|
|tokenSerialNumber||The token serial number associated with a user. The number is displayed at the back of the SecurID700 hardware token.||Yes||36||String|
Example ResponseExample Response
The following example response shows whether the PIN is cleared or not for a single hardware token, with token serial number specified in the request.
Response Property DescriptionsResponse Property Descriptions
The following table shows response property descriptions and the associated data types.
|userId||Identifies the user to whom the hardware token is assigned or registered.||String|
|tokenSerialNumber||Serial number of the hardware token.||String|
|pinSet||Flag that tells the system whether the user has set a PIN or not. This is managed by the system and is mainly for informational purposes.
True - PIN is set. False - PIN is not set.
Response CodesResponse Codes
The following table shows response codes and descriptions for this API.
|200||Successfully cleared the PIN for the hardware token assigned to the user.|
|404||Either user does not exist or hardware token does not exist in the Cloud Authentication Service.|
|409||Cannot clear the PIN for a hardware token because it is not assigned to a particular user.|
|500||Internal server error occurred.
The following message is returned: Unable to Enable/Disable a hardware token.
|429||Too many requests.|