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.
POST
https://example.thoughtindustries.com/incoming/v2/content/certificate-templates/bulkExample 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
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
templates | CertificateTemplateInput[] | Yes | body | Array 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
| Field | Type | Description |
|---|---|---|
createdCount | integer | Number of certificate templates successfully created by this request. |
updatedCount | integer | Number of certificate templates successfully updated by this request. |
createdIds | uuid[] | UUIDs of the newly created certificate templates. |
errors | BulkCertificateTemplateError[] | List of errors encountered for individual templates during the bulk operation. |
errors.resourceId | uuid | UUID of the template that caused the error. |
errors.title | string | Human-readable title identifying the template that caused the error. |
errors.error | string | Description of the error that occurred for this template. |
errors.record | string | Raw record data associated with the failed template. |
warnings | string[] | Non-fatal warning messages generated during the bulk operation. |
backgroundJob | BackgroundJob | Background job spawned to process the bulk operation, if applicable. |
backgroundJob.id | uuid | Unique identifier of the background job. |
backgroundJob.type | string | Classification of the background job. |
backgroundJob.description | string | Human-readable description of what the background job is doing. |
backgroundJob.errorMessage | string | Error message from the background job, if the job failed. |
backgroundJob.createdAt | ISO 8601 timestamp | Date and time when the background job was created, in ISO 8601 format. |
backgroundJob.repeatable | boolean | Indicates whether the background job is configured to run on a repeating schedule. |
backgroundJob.status | BackgroundJobStatus | Current status of the background job (e.g., complete). |