コンテンツにスキップ

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.

id
required
string

Rename a current-admin passkey.

Media type application/json
object
device_name
required
string
Example
{
"device_name": "MacBook Pro"
}

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
One of:
object
aaguid
required
string
name
required
string | null
icon_dark
required

Display-only data URI icon for dark backgrounds when available.

string | null
icon_light
required

Display-only data URI icon for light backgrounds when available.

string | null
known
required
boolean
created_at
required
integer format: int64
last_used_at
required
Any of:
integer format: int64
Example
{
"success": true,
"passkey": {
"id": "apk_123",
"device_name": "MacBook Pro",
"created_at": 1770000000000,
"last_used_at": null
}
}

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"
}