Skip to main content

Create organization team

Owner or admin creates an org-scoped Team. Not a Studio and not followable. Requires a Bearer session.
1 min read
post/organizations/{organizationId}/teams
Request example
Response
post/organizations/{organizationId}/teams

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

organizationIdstringrequired#

Body

application/json
namestringrequired#

Responses

application/json
Created.
dataobjectrequired#
Show child attributes
idstringrequired#
namestringrequired#
membersobject[]required#
Show child attributes
userIdstringrequired#
usernamestring#
emailstring#
avatarUrlstring#
assignmentsobject[]required#
Show child attributes
studioIdstringrequired#
profileNamestringrequired#
roleenum<string>required#
Options:adminmember