Update Passkey.
PATCH
/api/admin/me/passkeys/{id}
Code sample: Shell / cURL
curl --request PATCH \ --url https://auth.example.com/api/admin/me/passkeys/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "device_name": "MacBook Pro" }'Update Passkey in the Admin Passkeys area. The request body is JSON unless the detailed schema for this operation states otherwise.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body required
Section titled “Request Body required ”Rename a current-admin passkey.
Media type application/json
object
device_name
required
string
Example
{ "device_name": "MacBook Pro"}Responses
Section titled “ Responses ”Passkey mutation result.
Media type application/json
object
success
required
boolean
passkey
required
object
id
required
string
device_name
required
string | null
aaguid
required
Display-only WebAuthn authenticator AAGUID. Do not use for trust decisions.
string | null
provider
required
created_at
required
integer format: int64
Example
{ "success": true, "passkey": { "id": "apk_123", "device_name": "MacBook Pro", "created_at": 1770000000000, "last_used_at": null }}default
Section titled “default ”Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}