Update user role
POST
/api/admin/users/{id}/role
const url = 'https://hitkeep.com/api/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/role';const options = { method: 'POST', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"role":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/api/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/role \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{ "role": "example" }'Updates instance role for target user.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Request Body required
Section titled “Request Body required ” Media type application/json
object
role
required
string
Example generated
{ "role": "example"}Responses
Section titled “ Responses ”Status
Media type application/json
object
message
string
status
string
Example generated
{ "message": "example", "status": "example"}