Users

This section give's control over the system's users.
Every user is stored in the DB with an attahcment to an account.
Every user can be related to a company (group) and some actions/settings will be applied to all the user's attached to the group.
Admin logged in - can upload users file,store new users in DB,attach user to companies,get information about all the users.
User logged in - can see it's own data about his user,account and company.

List Users

Retrieves a paginated list of users in the system along with key metadata for each user.

Responses
200

Users listed successfully

get/v3/users
Response samples
application/json
{
  • "totalItems": 319,
  • "result": [
    ]
}

Get User by ID

Retrieves the full user details for a specific user by their unique ID.

Request
path Parameters
user_id
required
string

ID of the user

Responses
200

User details retrieved successfully

get/users/{user_id}
Response samples
application/json
{
  • "api_message": "USER_GET_SHOW_SUCCESS",
  • "api_data": {
    }
}

Create User or Admin

Creates a new user or admin account. Use the query parameter admin=true to create an admin user.

Request
query Parameters
admin
boolean

Set to true to create an admin user

Request Body schema: application/json
required
username
required
string
email
required
string
phone
required
string
CID
required
string
Responses
200

User created successfully

post/users
Request samples
application/json
{
  • "username": "string",
  • "email": "string",
  • "phone": "string",
  • "CID": "string"
}
Response samples
application/json
{
  • "api_message": "USER_POST_SUCCESS",
  • "api_data": {
    }
}