Skip to content
Home » DICloak API – Team Member Interface

DICloak API – Team Member Interface

1. Team Member Interface

GET to Obtain the Member List

GET /v1/members

Request Parameters

NameLocationTypeRequiredDescription
page_noqueryintegerNoPage number. The default value is 1.
page_sizequeryintegerNoPagination size. The default value is 10.
allquerybooleanNoWhether to obtain the full amount of data. When it is set to true, page_no and page_size will be ignored.
detailquerybooleanNoWhether details are required.
userquerystringNoUser name/ID.
role_idquerystringNoMember group (role).
env_group_idquerystringNoBrowser profile group ID.
statusquerystringNoStatus (DISABLED for disabled, ENABLED for normal).
remarkquerystringNoRemarks.
authorityquerystringNoQualification (SUPER_ADMIN for super administrator, ADMIN for administrator, MANAGER for manager, MEMBER for employee).
start_create_timequerystringNoStart time.
end_create_timequerystringNoEnd time.
X-API-KEYheaderstringYes

Return Results

NameTypeRequiredDescription
idstringNoID.
create_timestringNoCreation time.
update_timestringNoUpdate time.
user_idstringNoUser ID.
namestringNoName.
emailstringNoEmail.
all_env_groupbooleanNoWhether it belongs to all groups.
env_group_listEnvironmentGroupMemberVONoList of browser profile groups.
role_idstringNoID of the member group.
role_namestringNoName of the member group.
authoritystringNoQualification (SUPER_ADMIN for super administrator, ADMIN for administrator, MANAGER for manager, MEMBER for employee).
statusstringNoStatus (DISABLED for disabled, ENABLED for enabled).
remarkstringNoRemarks.
manager_idstringNoID of the superior manager.
current_userbooleanNoWhether the logged-in account is the current member.
typestringNoMember type (EXTERNAL, INTERNAL).
login_validatebooleanNoWhether to enable login verification.
passwdstringNoPassword of the member (for internal members).
EnvironmentGroupMemberVO
NameTypeRequiredDescription
group_idstringNoID of the browser profile group.
env_group_namestringNoName of the browser profile group.
member_idstringNoID of the member.
member_namestringNoName of the member.
{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      {
        "id": "string",
        "create_time": "string",
        "update_time": "string",
        "user_id": "string",
        "name": "string",
        "email": "string",
        "all_env_group": true,
        "env_group_list": [
          {
            "group_id": null,
            "env_group_name": null,
            "member_id": null,
            "member_name": null
          }
        ],
        "role_id": "string",
        "role_name": "string",
        "authority": "SUPER_ADMIN",
        "status": "DISABLED",
        "remark": "string",
        "manager_id": "string",
        "current_user": true,
        "type": "EXTERNAL",
        "login_validate": true,
        "passwd": "string"
      }
    ],
    "total": 0
  }
}

GET to Obtain Member Details

GET /v1/member/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYesNone.
X-API-KEYheaderstringYesNone.

Return Results

NameTypeRequiredDescription
codeintegerNo
msgstringNo
dataOpenMemberVONoRefer to the list.
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "create_time": "string",
    "update_time": "string",
    "user_id": "string",
    "name": "string",
    "email": "string",
    "all_env_group": true,
    "env_group_list": [
      {
        "group_id": "string",
        "env_group_name": "string",
        "member_id": "string",
        "member_name": "string"
      }
    ],
    "role_id": "string",
    "role_name": "string",
    "authority": "SUPER_ADMIN",
    "status": "DISABLED",
    "remark": "string",
    "manager_id": "string",
    "current_user": true,
    "type": "EXTERNAL",
    "login_validate": true,
    "passwd": "string"
  }
}

PUT to Modify a Member

PUT /v1/member/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYes
X-API-KEYheaderstringYes
bodybodyobjectNo
namebodystringYesName.
emailbodystringYesEmail.
phonebodystringNoMobile phone number.
authoritybodystringYesQualification (SUPER_ADMIN for super administrator, ADMIN for administrator, MANAGER for manager, MEMBER for employee).
statusbodystringNoStatus (DISABLED for disabled, ENABLED for normal).
remarkbodystringNoRemarks.
role_idbodystringYesMember group.
all_env_groupbodybooleanNoWhether it belongs to all groups.
env_group_idsbodystringNoIDs of browser profiles.
manager_idbodystringNoID of the manager.
agent_idbodystringNoID of the agent.
typebodystringNoMember type.
passwdbodystringNoPassword of the member (for internal members).
{
  "name": "string",
  "email": "string",
  "phone": "string",
  "authority": "SUPER_ADMIN",
  "status": "DISABLED",
  "remark": "string",
  "role_id": "string",
  "all_env_group": true,
  "env_group_ids": [
    "string"
  ],
  "manager_id": "string",
  "agent_id": "string",
  "type": "EXTERNAL",
  "passwd": "string"
}

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {}
}

DELETE: Delete a Member

DELETE /v1/member/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYesNone.
X-API-KEYheaderstringYesNone.

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {},
  "next": "string"
}

POST to Create a Member

POST /v1/member

{
  "name": "string",
  "email": "string",
  "phone": "string",
  "authority": "SUPER_ADMIN",
  "status": "DISABLED",
  "remark": "string",
  "role_id": "string",
  "all_env_group": true,
  "env_group_ids": [
    "string"
  ],
  "manager_id": "string",
  "agent_id": "string",
  "type": "EXTERNAL",
  "passwd": "string"
}

Request Parameters

NameLocationTypeRequiredDescription
X-API-KEYheaderstringYesNone.
bodybodyobjectNoNone.
namebodystringYesName.
emailbodystringYesEmail.
phonebodystringNoMobile phone number.
authoritybodystringYesQualification (SUPER_ADMIN for super administrator, ADMIN for administrator, MANAGER for manager, MEMBER for employee).
statusbodystringNoStatus (DISABLED for disabled, ENABLED for normal).
remarkbodystringNoRemarks.
role_idbodystringYesMember group.
all_env_groupbodybooleanNoWhether it belongs to all groups.
env_group_idsbodystringNoIDs of browser profiles.
manager_idbodystringNoID of the manager.
agent_idbodystringNoID of the agent.
typebodystringNoMember type.
passwdbodystringNoPassword of the member (for internal members).

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "create_time": "string",
    "update_time": "string",
    "user_id": "string",
    "name": "string",
    "email": "string",
    "all_env_group": true,
    "env_group_list": [
      {
        "group_id": "string",
        "env_group_name": "string",
        "member_id": "string",
        "member_name": "string"
      }
    ],
    "role_id": "string",
    "role_name": "string",
    "authority": "SUPER_ADMIN",
    "status": "DISABLED",
    "remark": "string",
    "manager_id": "string",
    "current_user": true,
    "type": "EXTERNAL",
    "login_validate": true,
    "passwd": "string"
  },
  "next": "string"
}
NameTypeRequiredDescription
codeintegerNo
msgstringNo
dataOpenMemberVONoRefer to the list.
nextstringNo

GET to Obtain the List of Role Tables

GET /v1/member/roles

Request Parameters

NameLocationTypeRequiredDescription
page_noqueryintegerNoPage number, with the default value being 1.
page_sizequeryintegerNoPage size, with the default value being 10.
allquerybooleanNoWhether to obtain the full amount of data. When it is set to true, the values of pageNo and pageSize will be ignored.
detailquerybooleanNoWhether details are needed.
namequerystringNoName of the member group.
member_idquerystringNoID of the member.
remarkquerystringNoRemarks.
X-API-KEYheaderstringYes

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      {
        "id": "string",
        "create_time": "string",
        "update_time": "string",
        "code": "string",
        "name": "string",
        "status": "DISABLED",
        "remark": "string",
        "module_ids": [
          "string"
        ],
        "member_role_list": [
          {
            "org_id": null,
            "member_id": null,
            "member_name": null,
            "role_id": null,
            "role_name": null,
            "code": null
          }
        ],
        "current": true
      }
    ],
    "total": 0
  }
}
NameTypeDescription
idstringID.
create_timestringCreation time.
update_timestringModification time.
codestringRole code.
namestringRole name.
statusstringStatus (DISABLED for disabled, ENABLED for normal).
remarkstringRemarks.
module_idsstringModule list.
member_role_listMemberRoleVOMembers included in the role.
currentbooleanWhether it is in the current group.
MemberRoleVO
NameTypeRequiredDescription
org_idstringNoOrganization ID.
member_idstringNoMember ID.
member_namestringNoMember name.
role_idstringNoRole ID.
role_namestringNoRole name.
codestringNoRole code.

PATCH to Modify members

PATCH /v1/member/{id}

Request parameters

{
  "name": "string",
  "email": "string",//Required. If other parameters don't need to be modified, they'll stay the same if not provided.
  "phone": "string",
  "authority": "SUPER_ADMIN",
  "status": "DISABLED",
  "remark": "string",
  "role_id": "string",
  "all_env_group": true,
  "env_group_ids": [
    "string"
  ],
  "manager_id": "string",
  "agent_id": "string",
  "type": "EXTERNAL"
}

Return results

{
  "code": 0,
  "msg": "string",
  "data": {}
}