Update a member's role
PATCH
/organizations/{id}/members/{userId}
const url = 'https://api.krakenkey.io/organizations/example/members/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"role":"admin"}'};
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/organizations/example/members/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role": "admin" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Organization UUID
userId
required
string
User ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
role
required
New role for the member
string
Responses
Section titled “Responses”Role updated