Admin
Teams
Add team member (admin)
Changed onGate: 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 URLhttps://app.d-sports.org
- AuthHTTP bearer
Path parameters
teamIdstring required
Team id or slug.
Request body
Response
{ success, data: TeamAdmin }
Changes
- info
endpoint added
- info