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

Bulk Create Certificate Templates

Creates multiple certificate templates in a single request, returning counts of created and updated records along with any errors or warnings

Creates multiple certificate templates in a single request, returning counts of created and updated records along with any errors or warnings.

POSThttps://example.thoughtindustries.com/incoming/v2/content/certificate-templates/bulk

Example request

curl -X POST "https://example.thoughtindustries.com/incoming/v2/content/certificate-templates/bulk" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "templates": []
}'

Parameters

NameTypeRequiredLocationDescription
templatesCertificateTemplateInput[]YesbodyArray of certificate template objects to create or update in bulk.

Example response

{
  "data": {
    "APIBulkCreateCertificateTemplates": {
      "createdCount": 0,
      "updatedCount": 0,
      "createdIds": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "errors": [
        {
          "resourceId": "00000000-0000-0000-0000-000000000000",
          "title": "string",
          "error": "string",
          "record": "string"
        }
      ],
      "warnings": [
        "string"
      ],
      "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
createdCountintegerNumber of certificate templates successfully created by this request.
updatedCountintegerNumber of certificate templates successfully updated by this request.
createdIdsuuid[]UUIDs of the newly created certificate templates.
errorsBulkCertificateTemplateError[]List of errors encountered for individual templates during the bulk operation.
errors.resourceIduuidUUID of the template that caused the error.
errors.titlestringHuman-readable title identifying the template that caused the error.
errors.errorstringDescription of the error that occurred for this template.
errors.recordstringRaw record data associated with the failed template.
warningsstring[]Non-fatal warning messages generated during the bulk operation.
backgroundJobBackgroundJobBackground job spawned to process the bulk operation, if applicable.
backgroundJob.iduuidUnique identifier of the background job.
backgroundJob.typestringClassification of the background job.
backgroundJob.descriptionstringHuman-readable description of what the background job is doing.
backgroundJob.errorMessagestringError message from the background job, if the job failed.
backgroundJob.createdAtISO 8601 timestampDate and time when the background job was created, in ISO 8601 format.
backgroundJob.repeatablebooleanIndicates whether the background job is configured to run on a repeating schedule.
backgroundJob.statusBackgroundJobStatusCurrent status of the background job (e.g., complete).