add_user
Add a new user to the inventory system by supplying username, password, email, phone, address, and role. Grants access based on user type such as admin, stocker, or cashier.
Instructions
Adds a new user to the inventory management system.
Args:
username: The username of the new user.
password: The password for the new user.
email: The email address of the new user.
phone: The phone number of the new user.
address: The address of the new user.
type: The type of user (e.g., Admin, Stocker, Cashier).
Returns:
A confirmation message or an error message in json format if the request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| Yes | |||
| phone | Yes | ||
| address | Yes | ||
| password | Yes | ||
| username | Yes |