Skip to main content

Scheduling Schema

Schemas

Appointment

Core scheduling object used for appointments, tasks, shifts, meetings, and holidays.

PropertyTypeDescription
idintegerAppointment ID
agent_idintegerAssigned agent ID
agentsarray[Uname]Multiple assigned agents
ticket_idintegerAssociated ticket ID
client_idintegerAssociated client ID
client_namestringClient name
site_idintegerAssociated site ID
user_idintegerAssociated user/contact ID
subjectstringAppointment title/subject
start_datedate-timeStart date and time
end_datedate-timeEnd date and time
alldaybooleanWhether this is an all-day appointment
appointment_type_idintegerAppointment type ID
appointment_type_namestringAppointment type name
appointment_statusintegerCurrent appointment status
statusintegerGeneral status
complete_statusintegerCompletion status
complete_datedate-timeDate/time appointment was completed
complete_agent_idintegerAgent who completed the appointment
complete_notestringCompletion notes (plain text)
notestringAppointment notes (plain text)
note_htmlstringAppointment notes (HTML)
is_taskbooleanWhether this appointment is a task
is_privatebooleanWhether the appointment is private
holiday_iduuidAssociated holiday UUID
holiday_typeintegerHoliday type
recurring_master_idstringID of the recurring master appointment
halo_recurring_master_idintegerHalo-internal recurring master ID
collection_iduuidCollection group UUID for linked appointments
scheduleScheduleEmbedded recurrence schedule definition
schedulehandledtypeintegerHow the schedule was applied
appointment_locationintegerLocation type ID
appointment_location_namestringLocation name
appointment_location_free_textstringFree-text location description
requires_approvalbooleanWhether the appointment requires approval
approval_statusintegerApproval status
approvalagentintegerAgent responsible for approval
approvalnotestringApproval note
approvaldatetimedate-timeWhen approval was granted
estimatedoubleEstimated time (hours)
appointment_hoursdoubleTotal appointment hours
appointment_work_hoursdoubleWorking hours for the appointment
complete_timetakendoubleActual time taken at completion
utcoffsetdoubleUTC offset for date calculations
shift_type_idintegerShift type ID
shift_team_idintegerShift team ID
is_active_shiftbooleanWhether the shift is currently active
is_ad_hoc_shiftbooleanWhether this is an ad-hoc shift
shift_breaksarray[TimesheetEvent]Break events within the shift
online_meeting_urlstringURL for online meeting
conference_idstringConference call ID
organizerintegerOrganizer agent ID
attendeesstringAttendee list
inform_agentsbooleanWhether to notify assigned agents
inform_userbooleanWhether to notify the user/contact
booking_fieldsarray[RequestTypeField]Custom booking form fields
ticket_cf_updatearray[CustomField]Custom field updates to apply to the linked ticket
update_ticket_statusintegerStatus to set on the linked ticket
date_createddate-timeCreation timestamp
last_modifieddate-timeLast modified timestamp

Schedule

Defines a recurrence pattern for appointments or holidays.

PropertyTypeDescription
idintegerSchedule ID
subjectstringSchedule subject/name
agentidintegerAssociated agent ID
requesttypeintegerRequest type
typeintegerSchedule type
recurrencepatternintegerRecurrence pattern type (daily/weekly/monthly/yearly)
startdatedate-timeRecurrence start date
enddatedate-timeRecurrence end date
hoursdoubleDuration in hours
rangeofrecurrenceintegerRange of recurrence setting
endafteramountintegerEnd after N occurrences
dailyrecurrencepatternintegerDaily pattern type
dailyrecurrencedaysintegerNumber of days between daily recurrences
weeklyrecurrenceweeksintegerNumber of weeks between weekly recurrences
weeklyrecurrencestringstringDays of week bitmask for weekly recurrence
weeklyrecurrenceamountarray[KeyPair]Weekly recurrence day configuration
monthlyrecurrencepatternintegerMonthly pattern type
monthlyrecurrencespecificdateintegerSpecific day of month
monthlyrecurrencespecificdateintervalintegerMonth interval for specific-date pattern
monthlyrecurrencespecificdayintegerOrdinal day (e.g., first, last)
monthlyrecurrencespecificdayofweekintegerDay of week for ordinal pattern
monthlyrecurrencespecificdayintervalintegerMonth interval for ordinal pattern
yearlyrecurrencepatternintegerYearly pattern type
yearlyrecurrencespecificdateintegerDay of month for yearly specific-date
yearlyrecurrencespecificdatemonthintegerMonth for yearly specific-date
yearlyrecurrencespecificdateintervalintegerYear interval for specific-date pattern
yearlyrecurrencespecificdayintegerOrdinal day for yearly ordinal pattern
yearlyrecurrencespecificdayofweekintegerDay of week for yearly ordinal pattern
yearlyrecurrencespecificdaymonthintegerMonth for yearly ordinal pattern
yearlyrecurrencespecificdayintervalintegerYear interval for ordinal pattern
nextrundatedate-timeNext execution date
nextcreationdatedate-timeNext creation date
uniqueidintegerUnique schedule identifier
eventsarray[Appointment]Generated appointment events

Timesheet

Represents a single day's timesheet for an agent.

PropertyTypeDescription
idintegerTimesheet ID
agent_idintegerAgent ID
agent_namestringAgent name
datedate-timeTimesheet date
start_timedate-timeShift start time
end_timedate-timeShift end time
estimated_start_timedate-timeEstimated shift start
estimated_end_timedate-timeEstimated shift end
target_hoursdoubleTarget hours for the day
actual_hoursdoubleActual hours worked
work_hoursdoubleBillable work hours
chargeable_hoursdoubleChargeable hours
break_hoursdoubleBreak hours taken
allowed_break_hoursdoubleAllowed break hours
unlogged_hoursdoubleHours not yet logged
forecasting_hoursdoubleForecasted hours
workdayidintegerAssociated workday configuration ID
eventsarray[TimesheetEvent]Individual time entries for the day
approvalTimesheetApprovalApproval record
timesheet_managerintegerManager agent ID for approval
forecasting_idintegerForecasting record ID
percentagedoubleCompletion percentage
enableshiftsbooleanWhether shifts are enabled
colourstringDisplay colour
_submitapprovalbooleanAction: submit for approval
_approvebooleanAction: approve timesheet
_rejectbooleanAction: reject timesheet
_revertapprovalbooleanAction: revert approval
_approval_messagestringMessage for approval action

TimesheetEvent

An individual time entry within a timesheet day.

PropertyTypeDescription
idintegerEvent ID
event_typeintegerType of event
subjectstringEvent subject/description
start_datedate-timeStart time
end_datedate-timeEnd time
timetakendoubleTime taken in hours
agent_idintegerAgent ID
ticket_idintegerAssociated ticket ID
client_idintegerAssociated client ID
site_idintegerAssociated site ID
action_numberintegerAssociated ticket action number
action_invoice_numberintegerAssociated invoice number
charge_rateintegerCharge rate type
charge_type_namestringCharge type name
notestringEvent notes
customerstringCustomer name
user_namestringAssociated user name
break_typeintegerBreak type (for break events)
break_notestringBreak notes
shift_apidintegerAssociated shift appointment ID
holiday_idintegerAssociated holiday ID
mileageintegerMileage logged
traveltimedoubleTravel time in hours
tickettype_idintegerTicket type ID
contract_idintegerAssociated contract ID
category1category4stringCategory classifications
agentsarray[KeyPair]Additional agents on the event
lognewticketbooleanCreate a new ticket from this event
is_starting_breakbooleanMarks this event as starting a break
is_ending_breakbooleanMarks this event as ending a break
new_agent_statusintegerAgent status to set after this event
originalstartdatedate-timeOriginal start date before edits

Holidays

A holiday or leave entry associated with an agent and/or workday.

PropertyTypeDescription
iduuidHoliday UUID
holidintegerHoliday integer ID
workday_idintegerAssociated workday ID
workday_guiduuidAssociated workday UUID
namestringHoliday name
datedate-timeHoliday start date
end_datedate-timeHoliday end date
alldaybooleanWhether it is an all-day holiday
durationdoubleDuration in hours
holiday_typeintegerHoliday type
agent_idintegerAssociated agent ID
agent_namestringAgent name
entityintegerEntity type
entity_idintegerEntity ID
environmentintegerEnvironment ID
isrecurringbooleanWhether this holiday recurs
scheduleScheduleRecurrence schedule definition
schedulehandledtypeintegerHow the schedule was processed
approval_statusintegerApproval status
approvalnotestringApproval note
approval_startbooleanWhether approval was started
riskdoubleChange freeze risk score
enable_change_freeze_per_clientbooleanEnable per-client change freeze
change_freeze_clientsarray[AreaChangeFreeze]Per-client change freeze settings
appointmentobjAppointmentAssociated appointment object
thirdpartyidstringExternal system ID

Workdays

A workday configuration defining business hours, active days, holidays, timeslots, and breaks.

PropertyTypeDescription
idintegerWorkday ID
guiduuidWorkday UUID
namestringWorkday name
summarystringDescription
intentstringIntent/purpose
timezonestringTimezone identifier
startdate-timeDefault start time
enddate-timeDefault end time
alldayssamebooleanWhether all days share the same start/end times
incmondayincsundaybooleanWhether each day of the week is active
startmondaystartsundaydate-timeStart time per day of week
endmondayendsundaydate-timeEnd time per day of week
access_control_levelintegerAccess control level
access_controlarray[AccessControl]Access control list
holidaysarray[Holidays]Holidays within this workday
timeslotsarray[Timeslot]Available timeslots
breaksarray[WorkdayBreak]Break definitions

Downtime

Records a service interruption period linked to a ticket.

PropertyTypeDescription
idintegerDowntime ID
faultidintegerAssociated ticket (fault) ID
fault_summarystringTicket summary
serviceintegerAffected service ID
service_descstringService description
workdaysintegerWorkday configuration ID for SLA calculation
hoursdoubleDuration of downtime in hours
startdatedate-timeDowntime start
enddatedate-timeDowntime end
endedbooleanWhether the downtime period has ended
calculatedbooleanWhether downtime hours have been calculated
alldaybooleanWhether this was an all-day downtime event