Update batch
Updates batch properties such as name, schedule, max_retries, retry_after_hrs, or concurrency. Customer ID is automatically determined from the API key.
Authentication
X-API-Keystring
API key for authentication. Example: raya_ABCD1234567890abcdef
Path parameters
id
The batch ID
Request
Request body for updating a batch. All fields are optional.
Schedule Field Details (if updating schedule):
- timezone: IANA timezone identifier (e.g., “Asia/Kolkata”, “America/New_York”, “UTC”)
- start_time: Start time in “HH:mm” format using 24-hour clock (e.g., “09:00” = 9 AM)
- end_time: End time in “HH:mm” format using 24-hour clock (must be after start_time)
- days: Array of day numbers where 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday
name
Batch name
schedule
Schedule configuration object for updating the batch schedule.
The schedule defines when the batch should be active and making calls. All times are interpreted in the specified timezone.
Required fields:
- timezone: IANA timezone identifier (e.g., “Asia/Kolkata”, “America/New_York”, “Europe/London”, “UTC”)
- start_time: Start time in “HH:mm” format using 24-hour clock (e.g., “09:00” for 9 AM, “18:30” for 6:30 PM)
- end_time: End time in “HH:mm” format using 24-hour clock (must be after start_time)
- days: Array of day numbers representing which days of the week the batch should run
Day Numbers:
- 1 = Monday
- 2 = Tuesday
- 3 = Wednesday
- 4 = Thursday
- 5 = Friday
- 6 = Saturday
- 7 = Sunday
Example: {“timezone”: “Asia/Kolkata”, “start_time”: “09:00”, “end_time”: “18:00”, “days”: [1,2,3,4,5]} This means the batch will run Monday through Friday from 9:00 AM to 6:00 PM India Standard Time (IST).
max_retries
Maximum number of retry attempts
retry_after_hrs
Hours to wait before retrying
concurrency
Maximum concurrent calls
Response
Batch updated successfully
id
name
status
agent_id
created_at
schedule
max_retries
concurrency
retry_after_hrs
total_contacts
completed_contacts
unanswered_contacts
Errors
404
Not Found Error

