Skip to main content

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

Path Parameters

    clientExtId stringrequired

    External ID of the client.

    Example: client-123
    userExtId stringrequired

    External ID of the user.

    Example: user-123

Body

    extId string

    The external ID of the OTP card credential. If omitted, one will be generated automatically.

    policyExtId string

    The external ID of the OTP policy to apply to the credential. If omitted, the default OTP policy for the client is used.

    stateName string

    Possible values: [initial, active, tmp-locked, fail-locked, reset-code, admin-changed, disabled, archived]

    The initial state of the credential.

Responses

OTP credential created successfully

Response Headers
  • Location any

    URL of the created resource

Loading...