Admin
Teams

Add team member (admin)

Changed on

Gate: canManageTeam with owner or legacy admin on the team, or platform admin/superadmin. Editors and viewers get 403. Only platform admins may assign owner. Body { userId, role? }, role defaults to editor. Missing userId is 400 "userId is required". Returns the TeamAdmin scalar row (no user object).

post/api/admin/teams/{teamId}/members

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Path parameters

teamIdstring required

Team id or slug.

Request body

userIdstring required
rolestring

Response

{ success, data: TeamAdmin }

Changes