The Team object represents a team and contains the
URI, the team name, and the users associated with the
team. Table 10-11 shows the Finesse Team APIs to access
the Team object and list all team messages.
Table 10-11 Finesse Team APIsMethodAPIDescriptionG
E
Thttp://<FQDN>/finesse/api/
Team/<id>?
includeLoggedOutAgents=tru
eAllow a user to get a
copy of the Team
objectG
E
Thttp://<FQDN>/finesse/api/
Team/<teamid>/TeamMessa
gesGet a list of all active
team messages for a
particular teamA full list of the Team APIs, with details, can be found at
https://developer.cisco.com/docs/finesse/#team-apis.
The Python script in Example 10-11 shows how to make
an API call to get details about Team ID 2.
Example 10-11 Python Request to Get Finesse Team
Details
Click here to view code image
import requests
url = "https://hq-
uccx.abc.inc:8445/finesse/api/Team/2"
headers = {
'authorization': "Basic
QWdlbnQwMDE6Y2lzY29wc2R0",
'cache-control': "no-cache",
}
response = requests.request("GET", url,
headers=headers)
print(response.text)