Create an OTP credential
POST/nevisidm/api/core/v1/:clientExtId/users/:userExtId/otp-credentials
Since: 8.2605.0, 9.2605.0
Required permission(s): AccessControl.CredentialCreate,AccessControl.CredentialView,AccessControl.PolicyConfigurationView
Creates a new OTP card credential for the specified user.
The OTP card is generated based on the credential policy identified by policyExtId. If no policyExtId is provided, the default OTP policy for the client is used. The policy controls the size, validity, and structure of the generated OTP card.
A user can have a maximum of two OTP card credentials simultaneously. Attempting to create a third will fail with a 422 error.
The response includes a Location header pointing to the created credential, identified by the generated or provided external ID.
Request
Responses
- 201
- 403
- 404
- 422
OTP credential created successfully
Response Headers
URL of the created resource
Insufficient permissions
Referenced resource not found
Invalid request parameters