Skip to main content
https://.thoughtindustries.com

Bulk Import Course Group In Person Event

Bulk-imports in-person events for course groups from a pre-uploaded asset file. Submit the asset path to validate and process the import, optionally as a dry run

Bulk-imports in-person events for course groups from a pre-uploaded asset file. Submit the asset path to validate and process the import, optionally as a dry run.

POSThttps://example.thoughtindustries.com/incoming/v2/content/courseGroup/inPersonEvent/bulk

Example request

curl -X POST "https://example.thoughtindustries.com/incoming/v2/content/courseGroup/inPersonEvent/bulk" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "bulkImportAssetPath": "string"
}'

Parameters

NameTypeRequiredLocationDescription
bulkImportAssetPathstringYesbodyThe file path of the pre-uploaded asset containing the in-person event records to import.

Example response

{
  "data": {
    "APIBulkCourseGroupInPersonEventImport": {
      "dryRun": true,
      "validRows": [
        {}
      ],
      "invalidRows": [
        {}
      ],
      "backgroundJob": {
        "id": "00000000-0000-0000-0000-000000000000",
        "type": "string",
        "description": "string",
        "errorMessage": "string",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "repeatable": true,
        "status": "complete"
      }
    }
  }
}

Response fields

FieldTypeDescription
dryRunbooleanIndicates whether the import was executed as a dry run without persisting changes.
validRowsobject[]Array of rows from the import file that passed validation.
invalidRowsobject[]Array of rows from the import file that failed validation.
backgroundJobBackgroundJobThe background job created to process the bulk import.
backgroundJob.iduuidUnique identifier of the background job.
backgroundJob.typestringThe type classification of the background job.
backgroundJob.descriptionstringHuman-readable description of the background job.
backgroundJob.errorMessagestringError message returned if the background job failed.
backgroundJob.createdAtISO 8601 timestampDate and time the background job was created, in ISO 8601 format.
backgroundJob.repeatablebooleanIndicates whether the background job is configured to run repeatedly.
backgroundJob.statusBackgroundJobStatusCurrent status of the background job (e.g., complete).