Request

POST https://api.hellotracks.com/api/createjobs
{
	data: {
		jobs: [
			 job_1,
			 job_2,
			   ...
			 job_n
		 ],
		 sendRouteChange: <boolean>,
		 autoassign: <boolean>,
	}
}
See also Job-API-Object to see properties of a job.
To directly assign a user, set the worker property in the job to the worker’s username. To get the worker’s username, retrieve the username in Member-API-Object, for example via /getaccounts.
jobs
array

An array of objects, each object needs to confirm the Job API Object schema. Note: do not set the id field, this will be set automatically. You can optionally set the uidSecondary field.

sendRouteChange
boolean
default: "false"

If true, assigned and day set to today, notifies assignee immediately of jobs being updated. The list of jobs will be updated automatically on their device.

autoassign
boolean
default: "false"

Indicates that the created jobs should automatically be assigned to a member. It will choose the nearest member that is available, taking the shift and day-route into account.

Response

{
	status: 0,
	jobs : [
		job_1,
		job_2,
		...
	    job_n
	]
}
status
number
required

Guaranteed to be set. Set to 0 if successful.

jobs
array
required

The array of all jobs created by this request.