v1
latestOpenAPI 3.1.02026-08-04164270844.7 KBIntegrations
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.
post/api/v2/bulk/integrations/{integrationId}/stats
Path parameters
integrationIdstring ObjectId required
Example:507f1f77bcf86cd799439011
The unique ID of the integration.
Headers
360-api-version'v2.0' required
The version of the API.
Request body
Example request
{
"input": [
{
"courseIdentifier": {
"value": "l3ssup3rh3r0s"
},
"userIdentifier": {
"value": "j.doe@hotmail.com"
},
"lang": "fr",
"progress": 100,
"score": 90,
"timeSpent": 3600000,
"firstActivityAt": "2025-07-08T22:00:00.000Z",
"lastActivityAt": "2025-07-08T22:00:00.000Z"
}
]
}Response
The operation is successfully created.