Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Bulk Operations

Bulk operations let you apply changes to many records at once — update tags, delete records, or other batch operations.

FieldTypeDescription
iduuidUnique identifier
account_iduuidAccount
created_byuuidUser who created the job
entity_typestringType of records being operated on
operationstringOperation being performed
entity_idsuuid[]IDs of records to operate on
paramsobjectOperation-specific parameters
statusstringJob status
total_countintegerTotal records to process
processed_countintegerRecords processed so far
failed_countintegerRecords that failed
error_messagestringError details if job failed
created_atdatetimeCreation timestamp
updated_atdatetimeLast update timestamp

Endpoint: bulk-jobs-create

FieldTypeRequiredDescription
entity_typestringYesRecord type (e.g., contacts, companies)
operationstringYesOperation to perform
entity_idsuuid[]YesRecord IDs to operate on
paramsobjectNoOperation-specific parameters
Terminal window
curl -X POST https://api.driftwoodapp.com/api/bulk-jobs-create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entity_type": "contacts",
"operation": "delete",
"entity_ids": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440001",
"550e8400-e29b-41d4-a716-446655440002"
]
}'

Endpoint: bulk-jobs-get

FieldTypeRequiredDescription
iduuidYesBulk job ID

Response:

{
"ok": true,
"result": {
"id": "aa0e8400-...",
"entity_type": "contacts",
"operation": "delete",
"status": "completed",
"total_count": 3,
"processed_count": 3,
"failed_count": 0,
"created_at": "2025-06-15T14:30:00Z",
"updated_at": "2025-06-15T14:30:02Z"
}
}
StatusDescription
pendingJob created, not yet started
processingJob in progress
completedAll records processed
failedJob failed