Reschedule Batch Job
Batch Calling
Reschedule Batch Job
Reschedule a scheduled or pending batch job to a new start time.
PATCH
Reschedule Batch Job
Overview
Changes the scheduled start time of a batch job. Only works for jobs inscheduled or pending status.
Features:
- Timezone-aware scheduling
- Automatic cancellation of old scheduled job
- Creates new Redis defer job with updated time
Cannot reschedule jobs that are already
running, completed, failed, or cancelled.Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
batch_job_id | string | ✅ | Unique batch job identifier |
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
scheduledStartTime | string | ✅ | — | New scheduled start time (ISO 8601 format) |
timezone | string | ❌ | "UTC" | IANA timezone for the scheduled time |
Timezone Examples
| Timezone | Description |
|---|---|
UTC | Coordinated Universal Time |
America/New_York | Eastern Time (US/Canada) |
America/Los_Angeles | Pacific Time (US/Canada) |
Europe/London | GMT/BST (UK) |
Europe/Paris | Central European Time |
Asia/Karachi | Pakistan Standard Time |
Asia/Dubai | Gulf Standard Time |
Asia/Tokyo | Japan Standard Time |
Australia/Sydney | Australian Eastern Time |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether reschedule succeeded |
message | string | Reschedule result description |
batchJobId | string | Rescheduled batch job ID |
scheduledStartTime | string | New scheduled start time (ISO 8601, UTC) |
status | string | Job status (scheduled) |
oldJobCancelled | boolean | Whether old Redis job was cancelled |
newScheduledJobId | string | New Redis defer job ID |
Examples
Example 1: Reschedule to Later Time
Example 2: Reschedule with UTC Timezone
Example 3: Reschedule Pending Job (No Previous Schedule)
Example 4: Reschedule Running Job (Error)
Behavior by Status
| Job Status | Reschedule Behavior |
|---|---|
scheduled | Cancels old Redis job + creates new defer job + updates DB |
pending | Creates new Redis defer job + updates DB + changes status to scheduled |
running | ❌ Error: Cannot reschedule running job |
completed | ❌ Error: Cannot reschedule completed job |
failed | ❌ Error: Cannot reschedule failed job |
cancelled | ❌ Error: Cannot reschedule cancelled job |
How It Works
Error Handling
404 Not Found
400 Bad Request
| Error Code | Cause |
|---|---|
job_not_found | Batch job ID doesn’t exist |
invalid_timezone | Invalid IANA timezone |
invalid_datetime | Invalid datetime format |
past_scheduled_time | Scheduled time is in the past |
invalid_status | Job is not in scheduled or pending status |
500 Internal Server Error
Use Cases
Reschedule Due to Weather Event
Your campaign is scheduled for today, but a storm is affecting your target region:Adjust Calling Hours for Compliance
You realize your scheduled time violates calling hours regulations:Postpone Campaign to Next Week
Related
- Create Batch Job — Create a new batch job
- Start Batch Job — Start scheduled job immediately
- Cancel Batch Job — Cancel a job
- Get Batch Job Detail — Get job status
- Batch Calling Guide — Complete guide to batch campaigns
Authorizations
Your TalkifAI API key. Get it from Studio → Settings → API Keys.
Path Parameters
Query Parameters
New scheduled start time (ISO 8601)
IANA timezone for the scheduled time