Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Call Instructions:

  1. This interface is used to batch add members to a specified group

  2. This interface is called only by system administrators

  3. For performance reasons, the response data has been removed after v2.4.4

...

{
“groupName”:”group name”
“users”:[{

    "name":"user name",

    "key":"user key",

    "fullName":"full name",

    "email":"email"

}]

}

Interface Information

Name

add member

Address

/rest/tools/1.0/api/group/addUserToGroup

Method

POST

Return Type

Json

Authentication

Basic,token

Header Parameter

Parameter name

Required

Parameter type

Description

ContentType

Y

String

application/json

body Parameters

Parameter name

Required

Parameter type

Description

groupName

Y

String

group name

userNames

Y

String[]

username list

return value format

Field

Type

Description

code

int

Appendix - Code

msg

String

data

String

...

Example Postman call

...

...

Example body request parameters:

...

Code Block
{
    "code": 0,
    "msg": "Success",
    "data": {
        "groupName": "test_group",
        "users": [
            {
                "name": "aa",
                "key": "40288c82819384f501819397856f0000",
                "fullName": "d-aa",
                "email": "aa@shdsd.com"
            },
            {
                "name": "aabb",
                "key": "40288c8281f00b880181f04e469a0000",
                "fullName": "d-bb",
                "email": "bbaa@shdsd.com"
            }
        ]
    }
}