Hi , Can we reset the passkey for identity incase ...
# ory-network
w
Hi , Can we reset the passkey for identity incase user lost the passkey so that they can reenroll, as i can see we cannot use delete admin API to remove passkey
b
I think this is the endpoint you are looking for:
DELETE /admin/identities/{id}/credentials/passkey
? https://www.ory.com/docs/kratos/reference/api#tag/identity/operation/deleteIdentityCredentials Alternative you could start a recovery flow for the user?
m
Yea that is the correct API!
w
Copy code
I tried but getting below response for DELETE /admin/identities/{id}/credentials/passkey        {
    "error": {
        "code": 400,
        "status": "Bad Request",
        "request": "e10d096d-efd4-976d-bfa5-bebd177e14bb",
        "reason": "Credentials type passkey cannot be deleted.",
        "message": "The request was malformed or contained invalid parameters"
    }
}
Can administrator also start the recovery flow for users ?
b
👍 1
m
You can't delete a credential if it's the only on on the identity. But it seems there might be a syntax error in your request @wooden-intern-47029 - could you share the full request you sent (with sensitive values redacted)