Skip to main content

Teams

List teams, invite one or several members, and create, update, or delete teams. Team endpoints are forwarded to the server and require the client to be signed in.

Showing 5 of 5 endpoints

GET/team/list

List teams

Lists all teams accessible to the signed-in account, without pagination.

AuthBearer API Key

Request parameters

None

Response fields

FieldTypeDescription
dataobject[]List teams
data[].idnumberTeam primary key ID, i.e. the teamId used by other endpoints
data[].userIdnumberUser ID of the team creator
data[].namestringTeam name
data[].windowNumnumberNumber of windows occupied
data[].memberNumnumberNumber of member seats occupied
data[].remarkstringTeam remark
data[].limitWindownumberWindow quota limit
data[].limitMembernumberMember quota limit
data[].combostringPlan code, e.g. COMBO_1
data[].comboExpirestringPlan expiration time
data[].activedstringEnabled switch: ON, OFF
data[].createdAtstringCreation time
data[].updatedAtstringUpdate time
data[].createrstringCreator email
data[].teamMemberobjectMembership info of the signed-in account in this team
data[].teamMember.roleIdnumberRole ID, 0 means regular member
data[].teamMember.nickstringMember nickname
data[].teamMember.switchPinnedstringPin-to-top switch: ON, OFF
data[].teamMember.roleobjectRole details, null for regular members
data[].teamMember.role.namestringRole name
data[].teamMember.role.menuIdstringJSON text of the role's menu permission ID list

Response example

{
"code": 0,
"msg": "成功",
"data": [
{
"id": 2001,
"userId": 1001,
"name": "默认团队",
"windowNum": 3,
"memberNum": 2,
"remark": "default team",
"limitWindow": 50,
"limitMember": 10,
"combo": "COMBO_1",
"comboExpire": "2027-01-15 23:59:59",
"actived": "ON",
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-06-01 12:30:00",
"creater": "[email protected]",
"teamMember": {
"id": 3001,
"teamId": 2001,
"userId": 1001,
"roleId": 4001,
"nick": "[email protected]",
"seq": 1,
"switchPinned": "OFF",
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-01-15 10:00:00",
"role": {
"id": 4001,
"teamId": 2001,
"name": "管理员",
"menuId": "[1, 2, 3, 4, 5]",
"createdAt": "2026-01-15 10:00:00",
"updatedAt": "2026-06-01 12:30:00"
}
}
}
]
}
POST/team/invite

Invite team member

Adds a registered user to the current team by email and sends an in-app notification.

AuthBearer API Key

Request parameters

FieldTypeRequiredDescription
emailstringRequiredRegistered email of the invited user; an unregistered email returns a user-not-found error

Notes

  • The target team is always the current team, and the teamId parameter is not accepted; new members get roleId 0 (regular member).
  • Returns a business error when the member count exceeds the team's limitMember or the plan has expired.

Response fields

FieldTypeDescription
datanullNo response data; success is indicated by code=0

Response example

{
"code": 0,
"msg": "成功",
"data": null
}
POST/team/batch_invite

Batch invite team members

Forwards to the same backend command as /team/invite and still handles only one email per call; to invite in batch, call it once per email.

AuthBearer API Key

Request parameters

FieldTypeRequiredDescription
emailstringRequiredRegistered email of the invited user

Notes

  • The backend command reads only a single email field; passing an array of emails has no effect.

Response fields

FieldTypeDescription
datanullNo response data; success is indicated by code=0

Response example

{
"code": 0,
"msg": "成功",
"data": null
}
POST/team/modify

Create or update team

Saves team info; with item.id it updates the team, without it creates a new team and automatically creates an admin role.

AuthBearer API Key

Request parameters

FieldTypeRequiredDescription
itemobjectRequiredTeam object; all team fields go at this level
item.idnumberOptionalTeam ID; omit to create a new team; updates by anyone other than the creator return a permission-denied error
item.namestringOptionalTeam name
item.remarkstringOptionalTeam remark

Notes

  • combo, comboExpire, windowNum, memberNum, limitWindow, limitMember, and actived are cleared by the server and cannot be modified through this endpoint.

Response fields

FieldTypeDescription
data.idnumberTeam ID; the newly generated ID when creating
data.userIdnumberOwner user ID of the team, written by the server from the signed-in account
data.namestringTeam name
data.remarkstringTeam remark

Response example

{
"code": 0,
"msg": "成功",
"data": {
"id": 2001,
"userId": 1001,
"name": "默认团队",
"remark": "default team"
}
}
POST/team/delete

Delete teams

Batch-deletes teams you created and moves their members out of those teams.

AuthBearer API Key

Request parameters

FieldTypeRequiredDescription
itemsnumber[]RequiredArray of team IDs

Notes

  • If any team was not created by you, the batch includes the current team, or a team still has windows, the whole batch is rejected with the corresponding business error.

Response fields

FieldTypeDescription
datanullNo response data; success is indicated by code=0

Response example

{
"code": 0,
"msg": "成功",
"data": null
}