Rename a passkey
PATCH
/api/v1/passkeys/{id}
const url = 'https://deck.example.com/api/v1/passkeys/1';const options = { method: 'PATCH', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"device_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://deck.example.com/api/v1/passkeys/1 \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "device_name": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
device_name
required
string
Example generated
{ "device_name": "example"}Responses
Section titled “Responses”No content
default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}