Skip to content

Function: updateTeam() ​

ts
function updateTeam(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  creatorId?: string | null;
  description: string;
  displayName: string;
  externalReference?:   | {
   [key: string]: unknown;
     id: string;
     source: string & object | "ATLASSIAN_GROUP" | "HRIS";
   }
     | null;
  organizationId: string;
  state: string & object | "ACTIVE" | "ARCHIVED";
  teamId: string;
  teamType:   | string & object
     | "EXTERNAL"
     | "OPEN"
     | "MEMBER_INVITE"
     | "ORG_ADMIN_MANAGED";
  userPermissions: {
   [key: string]: unknown;
     ADD_MEMBERS: boolean;
     DELETE_TEAM: boolean;
     REMOVE_MEMBERS: boolean;
     UPDATE_TEAM: boolean;
  };
}>;

Defined in: src/teams/api/teams.ts:123

This will only update the fields that get passed in and leave the rest as unmodified.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ description?: string | null; displayName?: string | null; orgId: string; teamId: string; }-
parameters.description?string | null-
parameters.displayName?string | null-
parameters.orgId?stringThe ID of the organisation the team to be updated belongs to.
parameters.teamId?stringThe ID of the team to be updated.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; creatorId?: string | null; description: string; displayName: string; externalReference?: | { [key: string]: unknown; id: string; source: string & object | "ATLASSIAN_GROUP" | "HRIS"; } | null; organizationId: string; state: string & object | "ACTIVE" | "ARCHIVED"; teamId: string; teamType: | string & object | "EXTERNAL" | "OPEN" | "MEMBER_INVITE" | "ORG_ADMIN_MANAGED"; userPermissions: { [key: string]: unknown; ADD_MEMBERS: boolean; DELETE_TEAM: boolean; REMOVE_MEMBERS: boolean; UPDATE_TEAM: boolean; }; }>