Yes, absolutely. There are two ways for you to do it:
Option 1 - Assign an existing job to a worker
You must update the existing job using a PUT.
To complete this:
- you will need to know:
-
- The Job ID
- The Worker ID
- Your API Key
-
- Send the PUT to:
https://api.vworkapp.com/api/v5/jobs/[JOB_ID].xml?api_key=[API_KEY]
- Include the XML below:
<job>
<worker_id>[WORKER_ID]</worker_id>
<planned_start_at>2021-01-26T05:30:00+00:00</planned_start_at>
</job>
- Replace the JOB_ID, the API_KEY, the WORKER_ID, and the planned start at with the correct values for your job.
- If you do not include the planned start at, we will default the time to "now".
Option 2 - Create and assign a job in one step
To create a new job and assign it to the worker in one step:
- Create your job as your normally would with a POST to:
https://api.vworkapp.com/api/v5/jobs.xml?api_key=[API_KEY]
- Make sure you include the additional XML above in the initial job POST.