> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update

> Updates metadata for an existing passkey registration (e.g. sets a user-friendly display name). Calls the `PUT /sdk/v1/webauthn/update/{webauthn_registration_id}` endpoint.

## Returns

**requestId** `String` *required*

**statusCode** `Int` *required*

**webauthnRegistration** `ApiUserV1WebAuthnRegistration?`

**properties**

**webauthnRegistrationId** `String` *required*

**domain** `String` *required*

**userAgent** `String` *required*

**verified** `Boolean` *required*

**authenticatorType** `String` *required*

**name** `String` *required*

```swift theme={null}
let params = WebAuthnUpdateParameters(name: "My iPhone")
let response = try await StytchConsumer.passkeys.update(
    id: "webauthn-registration-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
    request: params
)
```
