AdminUsersResource
admin/users.AdminUsersResource
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<AdminUserRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
created user
Description
creates a user with the provided information
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
delete response
Description
deletes a user
list
list(customHeaders?
): ResponsePromise
<AdminUsersListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminUsersListRes
>
a list of all users
Description
lists all users
resetPassword
resetPassword(payload
, customHeaders?
): ResponsePromise
<AdminUserRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
Description
resets the users password given the correct token.
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminUserRes
>
Retrieves a given user
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
the user
sendResetPasswordToken
sendResetPasswordToken(payload
, customHeaders?
): ResponsePromise
<void
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<void
>
Description
resets password by re-sending password token.
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminUserRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
the updated user
Description
updates a given user