Job Management
Create Jobs
Create one or multiple jobs.
Request
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
number
requiredGuaranteed to be set. Set to 0
if successful.
jobs
array
requiredThe array of all jobs created by this request.