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

Bulk Update Certificate Templates

Bulk-updates one or more certificate templates in a single request

Bulk-updates one or more certificate templates in a single request.

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

Example request

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

Parameters

NameTypeRequiredLocationDescription
templatesUpdateCertificateTemplateInput[]YesbodyArray of certificate template objects to update, each containing the template ID and fields to modify.

Example response

{
  "data": {
    "APIBulkUpdateCertificateTemplates": {
      "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 created during the bulk operation.
updatedCountintegerNumber of certificate templates successfully updated during the bulk operation.
createdIdsuuid[]UUIDs of any certificate templates created during the bulk operation.
errorsBulkCertificateTemplateError[]List of errors encountered for individual templates during the bulk operation.
errors.resourceIduuidUUID of the certificate template that caused the error.
errors.titlestringHuman-readable title identifying the failed certificate template.
errors.errorstringDescription of the error that occurred for this template.
errors.recordstringSerialized representation of the record that failed to process.
warningsstring[]Non-fatal warning messages generated during the bulk operation.
backgroundJobBackgroundJobBackground job created to process the bulk update asynchronously, if applicable.
backgroundJob.iduuidUnique identifier of the background job.
backgroundJob.typestringClassification of the background job task.
backgroundJob.descriptionstringHuman-readable description of what the background job is processing.
backgroundJob.errorMessagestringError message recorded if the background 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 scheduled to repeat.
backgroundJob.statusBackgroundJobStatusCurrent status of the background job (e.g., complete).