Gamma API
AuthenticationPasskeys

Rename a passkey

POST
/api/auth/passkey/update-passkey

Update a specific passkey's name

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Request Body

application/json
  1. body
id*string

The ID of the passkey which will be updated. Eg: "passkey-id"

name*string

The new name which the passkey will be updated to. Eg: "my-new-passkey-name"

Length1 <= length

Response Body

Passkey updated successfully

application/json
  1. response
passkey*
Example Request
curl -X POST 'http://localhost:3000/api/auth/passkey/update-passkey' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "name": "string"}'
Example Response
{  "passkey": {    "id": "string",    "name": "string",    "publicKey": "string",    "userId": "string",    "credentialID": "string",    "counter": 0,    "deviceType": "string",    "backedUp": true,    "transports": "string",    "createdAt": "2019-08-24T14:15:22Z",    "aaguid": "string"  }}