v0.12.12 user manager update
This commit is contained in:
@@ -55,6 +55,7 @@ export const api = {
|
||||
getUsers: () => req('GET', '/users'),
|
||||
searchUsers: (q, groupId) => req('GET', `/users/search?q=${encodeURIComponent(q)}${groupId ? `&groupId=${groupId}` : ''}`),
|
||||
createUser: (body) => req('POST', '/users', body),
|
||||
updateUser: (id, body) => req('PATCH', `/users/${id}`, body),
|
||||
bulkUsers: (users) => req('POST', '/users/bulk', { users }),
|
||||
updateName: (id, name) => req('PATCH', `/users/${id}/name`, { name }),
|
||||
updateRole: (id, role) => req('PATCH', `/users/${id}/role`, { role }),
|
||||
|
||||
Reference in New Issue
Block a user