Skip to navigation

Update batch

View as Markdown

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

idintegerRequired
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
namestringOptional>=1 character
Batch name
scheduleobjectOptional

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_retriesintegerOptional>=0
Maximum number of retry attempts
retry_after_hrsdoubleOptional>=0
Hours to wait before retrying
concurrencyintegerOptional>=1
Maximum concurrent calls

Response

Batch updated successfully
idintegerOptional
namestring or nullOptional
statusstring or nullOptional
agent_idstringOptionalformat: "uuid"
created_atdatetime or nullOptional
scheduleobject or nullOptional
max_retriesintegerOptional
concurrencyintegerOptional
retry_after_hrsdoubleOptional
total_contactsintegerOptional
completed_contactsintegerOptional
unanswered_contactsintegerOptional

Errors

404
Not Found Error