Bulk index teams

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the bulk indexing documentation for an explanation of how to use bulk endpoints.

SecurityBearerAuth
Request
Request Body schema: application/json; charset=UTF-8
required
uploadId
required
string

Unique id that must be used for this bulk upload instance

isFirstPage
boolean

true if this is the first page of the upload. Defaults to false

isLastPage
boolean

true if this is the last page of the upload. Defaults to false

forceRestartUpload
boolean

Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true

required
Array of objects (TeamInfoDefinition)

Batch of team information

Responses
200

OK

400

Bad Request

401

Not Authorized

409

Conflict

post/bulkindexteams
Request samples
application/json; charset=UTF-8
{
  • "uploadId": "string",
  • "isFirstPage": true,
  • "isLastPage": true,
  • "forceRestartUpload": true,
  • "teams": [
    • {
      • "id": "string",
      • "name": "string",
      • "description": "string",
      • "businessUnit": "string",
      • "department": "string",
      • "photoUrl": "http://example.com",
      • "externalLink": "http://example.com",
      • "emails": [
        • {
          • "email": "user@example.com",
          • "type": "OTHER"
          }
        ],
      • "datasourceProfiles": [
        • {
          • "datasource": "github",
          • "handle": "string",
          • "url": "string",
          • "nativeAppUrl": "string",
          • "isUserGenerated": true
          }
        ],
      • "members": [
        • {
          • "email": "user@example.com",
          • "relationship": "MEMBER",
          • "join_date": "2019-08-24"
          }
        ]
      }
    ]
}