Docs
Live demo
POST/api/v2/identities/{id}/principal-credentials/rotate
security:manageConsole session only

Rotate Principal Dex Connector login password for an identity. The new password is returned once. An administrator with an enrolled second factor must have confirmed it within the re-authentication window (POST /auth/mfa/reauth). An API token makes this change only when it was issued with allow_security_changes.

Parameters

Path1 required of 1
idstringpathrequired

Identity ID (UUID)

Request body application/json · RotatePrincipalCredentialsRequest

Principal credential rotation request

Optional1 field
principal_passwordstring

Manual password. Validated in UTF-8 bytes: 12-72 bytes, including uppercase, lowercase, digit, and special characters. Omit to auto-generate.

min length 12 · max length 72

Responses

200

Rotation completed

RotatePrincipalCredentialsResponse · 2 fields
principal_passwordstring
statusstringrequired
rotated
403

Forbidden: the caller's roles do not grant the permission of the operation, or the administrator's second factor was not confirmed recently (details.reason=mfa_reauth_required), or the request uses an API token issued without allow_security_changes (details.reason=api_token_security_changes_not_allowed).

Common errors: 400 401 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close