cancel_requested_datetimestring | null
When the job cancellation was requested.
cancelled_datetimestring | null
When the job was canceled.
created_datetimestring | null
When the job was created.
ended_datetimestring | null
When the job ended.
failed_datetimestring | null
When the job failed.
infoobject
Data concerning the progress of the job. E.g: how many objects the job has already processed.
locked_datetimestring | null
When the job was locked. A job is only locked while it's actively running.
metaobject | null
Metadata associated with the job. You can use this parameter to store structured information (key-value data) about the job. This field is not used by Gorgias.
The parameters of the job.
apply_and_closeboolean
Whether the ticket should be closed once the macro is applied on it. Only applies to `applyMacro` jobs.
end_datetimestring | null
End of the interval from which to select tickets when the parameter `view` is used.
macro_idinteger
The ID of the macro to apply on the selected tickets. Only applies to `applyMacro` jobs.
start_datetimestring | null
Beginning of the interval from which to select tickets when the parameter `view` is used.
ticket_idsarray<integer>
A list of ticket IDs to be processed by the job.
urlstring
The path to the file to import.
updatesobject
Object (key-value) containing all the changes to apply on the selected tickets. Only applies to `updateTicket` jobs.
viewobject
A [view](#the-view-object)-like object used to select the tickets to be processed by the job.
view_idinteger
The ID of an existing [view](#the-view-object) used to select the tickets to be processed by the job.
contextobject
Object (key-value) containing extra context for the job
scheduled_datetimestring | null
When the job was scheduled to be started. A job cannot be scheduled more than 60 minutes in the future. If unspecified, the job is queued for execution immediately after creation.
started_datetimestring | null
When the job started.
statusstring
The status of the job. Options: cancel_requested, canceled, done, errored, fatal_errored, pending, running, scheduled
One ofcancel_requestedcanceleddoneerroredfatal_erroredpendingrunningscheduled
typestring
The type of the job. Options: applyMacro, deleteTicket, exportTicket, importMacro, exportMacro, updateTicket, exportTicketDrilldown, exportConvertCampaignSalesDrilldown
One ofapplyMacrodeleteTicketexportTicketimportMacroexportMacroupdateTicketexportTicketDrilldownexportConvertCampaignSalesDrilldown
user_idinteger
The ID of the user who created this job.