Skip to main content

Jobs

BigChange jobs, constraints, stock, groups, and types. Auth: X-API-Key header. Base: https://api.vh3connect.io/api:YdihQNr3.

Shared parameters

Date filters (list)

POST /jobs/list requires createdAtFrom and createdAtTo (job creation time, ISO 8601 UTC). The span between them must not exceed 12 months. See overview.

Jobs

Job lifecycle.

GET /jobs/job

Get job.

POST /jobs/create

Create job.

POST /jobs/edit

Update job.

POST /jobs/list

List jobs. createdAtFrom and createdAtTo are required. Max 12 months between them. Request body (key fields):

POST /jobs/cancel

Cancel job.

POST /jobs/start

Start job.

POST /jobs/result

Set result. Enum values:
  • status: completedOk, completedWithIssues

POST /jobs/scheduling

Schedule job.

POST /jobs/scheduling/suggestions

Candidate slots for resources or vehicles. Each item includes the resource or vehicle, startAt, extra distance, extra driving time, estimated cost, and skills. fromDate and toDate are required UTC timestamps. The window is at most seven days. A longer window returns BigChange’s 422, with BigChange’s validation body. A window from 13 October to 16 October returned slots on the 13th, 14th, and 15th only, so a toDate at midnight leaves out the day it names. The end is not an exact bound within a day: on DSSL a toDate of 08:05 and one of 08:04:59 both returned slots up to 08:20, so BigChange appears to keep the rest of the slot block that toDate falls in. Slots start in working hours, so no slot starts at midnight and the boundary itself cannot be seen on that tenant. latitude and longitude are required when jobId is absent. They have no default. Omitting both without a jobId returns BigChange’s 400. When jobId is sent, coordinates may be omitted and BigChange uses that job’s site. averageDurationMinutes, successRatePercent, and punctualityPercent are filled when jobId is sent and BigChange has history for that job type. A coordinates-only request leaves those three null. when is anytime, morning, afternoon, or custom. For custom, whenFrom and whenTo are the tenant’s local clock as HH:mm. startAt on each slot is UTC. resourceId, resourceGroupId, vehicleId, and vehicleGroupId each restrict to a single id; if you send several, only the first takes effect. To cover more, send one request per id. skillIds and attributeIds take up to 50 ids, and a slot must match all of them. The items array stays in BigChange’s order. This call leaves the job unassigned. Apply a chosen slot with POST /jobs/scheduling. Enum values:
  • schedulingType: resources, vehicles
  • when: anytime, morning, afternoon, custom

POST /jobs/status/history

Status history.

Job constraints

Scheduling constraints.

POST /jobs/constraints/create

Create constraint.

POST /jobs/constraints/delete

Delete constraint.

POST /jobs/constraints/list

List constraints.

Job stock

Parts on jobs.

POST /jobs/stock/create

Add stock line.

POST /jobs/stock/delete

Remove stock line.

POST /jobs/stock/get

Get stock line.

POST /jobs/stock/list

List stock lines.

Job groups

Multi-job programmes.

POST /job_groups/create

Create group.

POST /job_groups/edit

Update group.

POST /job_groups/job_group

Get group.

POST /job_groups/list

List groups.

POST /job_groups/status_history

Group status history.

POST /job_groups/job_group_results_as_complete

Mark complete.

POST /job_groups/job_group_results_as_financially_complete

Mark financially complete.

Job types

Job type catalogue.

POST /job_types/job_types

Get type.

POST /job_types/list

List types.