Skip to main content

Groups and categories

ApiGo organizes APIs along two independent dimensions:

DimensionPurposeStructureAffects permissions
GroupThe directory tree on the left of the workbench, API ownership and collaboration boundariesTree with nested subgroupsYes
CategoryBusiness tag used for filtering and searchFlat listNo

Both are maintained under "Service management → Category management → Groups and categories"; the page has two tabs, "Group management" and "Category management".

Group management​

Group tree​

Groups are shown as a tree table that can be expanded/collapsed and searched by name:

ColumnDescription
Group nameShown with hierarchy indentation; subgroups can be expanded
DescriptionGroup description
Created byGroup creator
Created atCreation time
Linked APIsNumber of APIs in the group; shown in red when 0
ActionsAdd subgroup, edit, delete

Groups also appear in the directory tree on the left of the workbench. Users see only the groups they created and the group subtrees they are authorized for; administrators can see all.

Creating a group​

Click "Add subgroup" to open the form:

FieldRequiredRule
Group nameYesMust not start with _ or a digit; only letters, digits, underscores and Chinese characters; length 2–50
Parent groupYesSelected from the group tree
Group descriptionNoUp to 50 characters

The group appears in the tree immediately after saving, and APIs can be filed under it in the workbench.

Editing and deleting​

  • Only the group creator or an administrator can edit or delete a group.
  • When editing a root group, the parent group cannot be changed, to avoid breaking the directory hierarchy.
  • The built-in group (ID 1) cannot be deleted; the backend returns "The built-in group cannot be deleted".
  • Deleting a group removes only the group record itself and does not cascade to delete APIs. If the group still contains APIs, they lose their group assignment after deletion, so migrate them to another group first.
Handle APIs before deleting

The "Linked APIs" value in the UI is informational only and does not block deletion. Before deleting a group that contains APIs, move those APIs to another group in the workbench.

Groups and permissions​

Groups are part of API visibility:

  • Non-administrators can only see groups they created and groups they are authorized for;
  • The workbench group tree and the group filter in the API list are both based on the same set of visible groups;
  • Group authorization is handled through system permissions/roles or project member configuration; users are not invited directly from the group form;
  • Groups are fully isolated between projects; after switching projects, you see the group tree of the current project.

Category management​

Category list​

Categories are flat business tags used to tag APIs so they can be filtered by business domain.

ColumnDescription
Category IDCategory primary key
Category nameBusiness category name
DescriptionCategory description
Linked APIsNumber of APIs using the category
Updated atLast modified time
ActionsEdit, delete

Supports search by category name and pagination.

Creating and editing​

The form has only two fields:

FieldRequiredDescription
Category nameYesBusiness category name
DescriptionNoCategory description

Categories are single-level; the current UI does not support parent-child categories. An API can select at most one category; the category is optional, and APIs can be saved and released without one.

Deletion restrictions​

When a category's "Linked APIs" count is greater than 0, the delete button is disabled. Change or clear the category on the APIs that use it first, then delete.

Categories and permissions​

Categories play no part in permission checks: any user who can open the category management page can maintain categories, and APIs are never restricted by category.

How to choose​

ScenarioUse
Isolate APIs by team/business line and control visibilityGroup
Workbench directory organization and API ownershipGroup
Tag APIs with business labels and search by business domainCategory
Need multi-level organizationGroup (nested)
Need a uniform mark across groupsCategory (flat)

Every API must belong to one group, but the category can be empty. The group determines "who can see it"; the category only determines "how to find it".

FAQ​

SymptomCauseResolution
A group is not visible in the workbenchYou are not the creator and have no authorizationAsk an administrator to authorize the group or project member permission
APIs disappear after a group is deletedThe APIs still point to the deleted groupFind them by keyword in the API list and assign a group again
The category delete button is grayed outAPIs still use the categoryChange the category on those APIs first
The group name cannot be savedIt starts with a digit/underscore or contains illegal charactersChange it to follow the naming rules
The parent group is grayed out when editing a root groupRoot groups cannot change their parentTo adjust the hierarchy, create a subgroup and migrate the APIs