Menu

New Group

Basics

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.


Request Parameters

Optional Body parameter can be omitted, and the parameter format is JSON.

NameTypeNecessaryDefaultExampleDescription
group_nametextYES-group1Unique name of the new group
remarktextNO-123Notes for adding groups (need to upgrade to v2.6.7.2 and above)


Return Data


//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"
}


Previous
Groups
Next
Edit Group
Last modified: 2023-12-21Powered by