Update a user (own record or admin)
PATCH
/users/{id}
const url = 'https://api.krakenkey.io/users/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"username":"jdoe","email":"jdoe@example.com"}'};
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/users/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "username": "jdoe", "email": "jdoe@example.com" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
User ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
username
Unique username
string
Example
jdoeemail
User email address
string
Example
jdoe@example.comResponses
Section titled “Responses”User updated
Access denied
User not found