Updates an existing interview’s details. Allows rescheduling, modifying assessment parameters, and updating candidate information before the interview starts.
Most fields can only be updated for scheduled interviews. In-progress or completed interviews have limited update options.
// Always provide a reason for reschedulingconst rescheduled = await jobhive.interviews.update(interviewId, { scheduled_at: newDateTime, reschedule_reason: 'Interviewer has a scheduling conflict', send_notification: true});
Copy
# Use batch updates for efficiencyasync def reschedule_batch(interview_ids, new_time, reason): updates = [] for interview_id in interview_ids: try: result = await client.interviews.update( interview_id, scheduled_at=new_time, reschedule_reason=reason ) updates.append(result) except Exception as e: print(f"Failed to update {interview_id}: {e}") return updates
Copy
// Validate before updatingfunction validateReschedule(newDateTime) { const now = new Date(); const scheduledTime = new Date(newDateTime); if (scheduledTime <= now) { throw new Error('Cannot schedule interview in the past'); } if (scheduledTime.getHours() < 9 || scheduledTime.getHours() > 17) { throw new Error('Interview must be scheduled during business hours'); } return true;}