Group Management

Updated by MoreLogin

1 Get a list of groups

Basic Information

POST  /api/group/page
  • Interface description: query group information, group information includes group ID and group name, where group ID is used to group the profile. The MoreLogin application needs to be updated to version 2.9.0 and above.

Request Parameters

Body parameter, non-mandatory parameters can not be passed, the format of the parameter is JSON.

Parameter Name

Type

Required

Description

pageNo

integer(int64)

YES

Current page, default: 1

pageSize

integer(int64)

YES

Number of articles per page, default: 20

tagName

string

NO

Search by Group Name

Example of a request

{
"pageNo": 1,
"pageSize": 10,
"tagName": ""
}

Return data

{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"data": {
"current": 0,
"dataList": [
{
"id": 0, // Group ID
"tagName": "" // Group name
}
],
"pages": 0,
"total": 0
},
"requestId": "", // Operation Request ID
}

2 Add group

Basic information

POST  /api/group/create
  • Interface description: add group, after adding successfully, can be used to group the profile. The name of groups can not be duplicated. After the successful creation of the group, the group ID will be returned. The MoreLogin application needs to be updated to version 2.9.0 and above.

Request Parameters

Body parameter, non-required parameters can be left out, the format of the parameter is JSON.

Parameter name

Type

Required

Description

tagName

string

YES

Group name

Example of a request

{
"tagName": ""
}

Return Data

{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"data": 0, // The data returned by the operation
"requestId": "", // Operation Request ID
}


How did we do?