Path: /api/v1/group/create
Method: POST
Description:Create profile groups and assign profiles to groups when creating them. Ensure that group name are unique. Upon successful creation of a group, a 'group_id' will be returned. 'group_id 0' is the default group created by the system.
Optional Body parameter can be omitted, and the parameter format is JSON.
Name | Type | Necessary | Default | Example | Description |
---|---|---|---|---|---|
group_name | text | YES | - | group1 | Unique name of the new group |
remark | text | NO | - | 123 | Notes for adding groups (need to upgrade to v2.6.7.2 and above) |
//Operation succeeded
{
"code": 0,
"data": {
"group_id":"xxxxxxx" //Group ID after adding group
"group_name":"group1" //Group name
"remark": "xxxxx" //Group remark
}
"msg": "Success"
}
//Operation failed
{
"code":-1,
"data":{},
"msg":"failed"
}