Tag Management

Updated by lei_jiang

1 Getting a list of tags

Basic information

GET  /api/envtag/all
  • Interface description: Query tag information, tag information includes tag ID and tag name, where tag ID is used to set tags for the profile. The MoreLogin application needs to be updated to version 2.14.0 and above.

Return Data

{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // error message
"data": [
{
"id": 0, // ID of tags
"tagName": "" // Name of tags
}
],
"requestId": "", // Operation Request ID
}

2 Create tags

Basic information

POST  /api/envtag/create
  • Interface description: Add tags, when added successfully, can be used to set tags for the profiles. The tag ID will be returned when created successfully. The MoreLogin application needs to be updated to version 2.14.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

Name of tags

Example of a request

{
"tagName": ""
}

Return Data

{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // error message
"data": {
"id": 0, // ID of tags
"tagName": "" // Name of tags
},
"requestId": "", // Operation Request ID
}

3 Modify information of tags

Basic information

POST  /api/envgroup/edit
  • Interface description: Allow users to modify the name of the tags. The MoreLogin application needs to be updated to version 2.14.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

id

integer(int64)

YES

ID of tags

tagName

string

YES

Name of tags

Example of a request

{
"groupName": "",
"id": 0,
}

Return Data

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

4 Delete tags

Basic information

POST  /api/envtag/delete
  • Interface description: Delete the specified tag. The MoreLogin application needs to be updated to version 2.14.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

ids

array

YES

Group ID

Example of a request

{
"ids": []
}

Return Data

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


How did we do?