Update current user profile
PATCH
/auth/profile
const url = 'https://api.krakenkey.io/auth/profile';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"displayName":"John Doe","notificationPreferences":{"cert_issued":true,"cert_failed":false}}'};
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://api.krakenkey.io/auth/profile \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "displayName": "John Doe", "notificationPreferences": { "cert_issued": true, "cert_failed": false } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
displayName
User display name
string
Example
John DoenotificationPreferences
Notification preferences (omitted keys default to enabled)
object
Example
{ "cert_issued": true, "cert_failed": false}Responses
Section titled “Responses”Updated user profile
Unauthorized