User groups in the Venddor API allow you to organize users by roles and permissions. This document provides a comprehensive list of all supported fields for user group objects.
The following table lists all available fields for user group objects:
| Field Name | Description | Available for Methods | Supported Values |
|---|---|---|---|
| usergroup_id | The ID of the user group | GET | integer |
| type* | The type of the user group | GET, POST, PUT |
A—adminsC—customers
|
| status* | The status of the user group | GET, POST, PUT |
A—activeH—hiddenD—disabled
|
| usergroup | The name of the user group | GET, POST, PUT | string |
| privileges | The privileges of the members of this group. This only applies to administrator groups | GET | array |
{
"type": "C",
"status": "A",
"usergroup": "Premium Customers"
}
{
"type": "A",
"status": "A",
"usergroup": "Store Managers",
"privileges": {
"manage_catalog": "Y",
"manage_users": "Y",
"manage_orders": "Y",
"manage_settings": "N"
}
}
Retrieves a list of all user groups.
Retrieves details of a specific user group by ID.
Creates a new user group with the provided information.
Updates an existing user group with the provided information.
Deletes a user group with the specified ID.