From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19


getTeams

Get a list of all available agent teams

Request

Syntax

getTeams(): Promise<OperationResult<Team[]>>

Where:

type Team = {

 id: string

 displayName: string

 usersCount?: number

}

Parameters

(None)

Example Request

   getTeamsButton.onclick = () => {

       adApi.getTeams()

   }

Return Value

Object Object Values Data Type Optional?

(Y/N)

Return Value Description
Team
id String N The team’s unique ID
displayName String N The team’s display name
usersCount Number Y Displays the number of users in this team
< Previous | Next >