curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/indexteam \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json; charset=UTF-8' \
  --data '{
  "team": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "businessUnit": "<string>",
    "department": "<string>",
    "photoUrl": "<string>",
    "externalLink": "<string>",
    "emails": [
      {
        "email": "jsmith@example.com",
        "type": "OTHER"
      }
    ],
    "datasourceProfiles": [
      {
        "datasource": "github",
        "handle": "<string>",
        "url": "<string>",
        "nativeAppUrl": "<string>",
        "isUserGenerated": true
      }
    ],
    "members": [
      {
        "email": "jsmith@example.com",
        "relationship": "MEMBER",
        "join_date": "2023-12-25"
      }
    ],
    "additionalFields": [
      {
        "key": "<string>",
        "value": [
          {}
        ]
      }
    ]
  },
  "version": 123
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json; charset=UTF-8

Info about a team and optional version for that info

team
object
required

Info about the team

version
integer

Version number for the team object. If absent or 0 then no version checks are done

Response

200

OK