Users
Manage user accounts and authentication. Users are individuals who can log into the system and perform various operations based on their permissions.
Quick Reference
Method |
Endpoint |
Description |
|---|---|---|
POST |
/api/users/list |
|
POST |
/api/users/user |
|
PUT |
/api/users/user |
|
GET |
/api/users/roles |
|
GET |
/api/users/pocusers |
POST /api/users/list
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/users/list"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/users/list
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/users/list'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/users/user
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/users/user"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/users/user
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/users/user'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
PUT /api/users/user
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.put(
"/api/users/user"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw put /api/users/user
curl -X PUT \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/users/user'
Sample Response:
1{
2 "id": "123e4567-e89b-12d3-a456-426614174000",
3 "status": "updated",
4 "message": "Resource updated successfully"
5}
GET /api/users/roles
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.get(
"/api/users/roles"
)
# Process the response
print(response)
ab api raw get /api/users/roles
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/users/roles'
Sample Response:
1[]
GET /api/users/pocusers
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.get(
"/api/users/pocusers"
)
# Process the response
print(response)
ab api raw get /api/users/pocusers
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/users/pocusers'
Sample Response:
1[]