Import integration statistics

Required OAuth scope: integrations:bulk.

This endpoint processes up to 10,000 objects asynchronously. For more information, see the Bulk operations guide.

Imports multiple integration statistics in bulk based on the provided integrationId. This endpoint will:

  • Create a new attempt if any of the following is true: forceNew is set to true; no attempt currently exists for the course and user; or firstActivityAt is later than the lastActivityAt or completedAt of all existing attempts.
  • Update existing non-completed attempts if firstActivityAt is earlier than the lastActivityAt or completedAt of those attempts.

Upon submission, the request is queued. Use the provided URL in the response header to check the status of the bulk operation.

Path Params
string
required

The unique ID of the integration.

Body Params
input
array of objects
required
length ≤ 10000

An array of objects, each specifying details for external statistics to be imported.

input*
Headers
string
enum
required

The version of the API.

Allowed:
Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*
application/json