diff --git a/app/definitions/rest/v1/teams.ts b/app/definitions/rest/v1/teams.ts index e282e630f..89b4e330a 100644 --- a/app/definitions/rest/v1/teams.ts +++ b/app/definitions/rest/v1/teams.ts @@ -24,7 +24,7 @@ export type TeamsEndpoints = { 'teams.create': { POST: (params: { name: string; - users: string[]; + members: string[]; type: TEAM_TYPE; room: { readOnly: boolean; extraData: { broadcast: boolean; encrypted: boolean } }; }) => { team: ITeam }; diff --git a/app/lib/services/restApi.ts b/app/lib/services/restApi.ts index 045318059..54f169ebf 100644 --- a/app/lib/services/restApi.ts +++ b/app/lib/services/restApi.ts @@ -160,7 +160,7 @@ export const createTeam = ({ }) => { const params = { name, - users, + members: users, type: type ? TEAM_TYPE.PRIVATE : TEAM_TYPE.PUBLIC, room: { readOnly,