# Vehicle Vehicles information ## Get vehicles list - [GET /vehicles](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles/get.md) ## Create new vehicle - [POST /vehicles](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles/post.md) ## Update vehicles bulk - [POST /vehicles/bulk](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1bulk/post.md) ## Find vehicle by ID - [GET /vehicles/{vehicleId}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D/get.md) ## Update/create vehicle by ID - [PUT /vehicles/{vehicleId}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D/put.md) ## Updates vehicle location - [POST /vehicles/{vehicleId}/location](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1location/post.md) ## Get day published shifts (Webhook DTO) - [GET /vehicles/serviceDay/{serviceDay}/shifts](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1serviceday~1%7Bserviceday%7D~1shifts/get.md) ## Get vehicle published tasks - [GET /vehicles/{vehicleId}/tasks](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks/get.md) ## Get vehicle published tasks by shift id (Webhook DTO) - [GET /vehicles/{vehicleId}/tasks/shiftId/{shiftId}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks~1shiftid~1%7Bshiftid%7D/get.md) ## Get vehicle published tasks by service day - [GET /vehicles/{vehicleId}/tasks/serviceDay/{serviceDay}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks~1serviceday~1%7Bserviceday%7D/get.md) ## Get vehicle published tasks by service day and shift - [GET /vehicles/{vehicleId}/tasks/serviceDay/{serviceDay}/shiftIndex/{shiftIndex}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks~1serviceday~1%7Bserviceday%7D~1shiftindex~1%7Bshiftindex%7D/get.md) ## Update task actuals - [PUT /vehicles/{vehicleId}/tasks/{taskId}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks~1%7Btaskid%7D/put.md) ## Task upload attachment - [PUT /vehicles/{vehicleId}/tasks/{taskId}/upload/attachment/{attachmentId}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks~1%7Btaskid%7D~1upload~1attachment~1%7Battachmentid%7D/put.md) ## get task attachment - [GET /vehicles/{vehicleId}/tasks/{taskId}/attachment/{attachmentId}](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1tasks~1%7Btaskid%7D~1attachment~1%7Battachmentid%7D/get.md) ## Set the next active task for a vehicle - [POST /vehicles/{vehicleId}/activeTask](https://developer.m2x.app/apis/publicapi/openapi/vehicle/paths/~1vehicles~1%7Bvehicleid%7D~1activetask/post.md) ## Shift publication webhook - [POST Shift Publication](https://developer.m2x.app/apis/publicapi/openapi/vehicle/shiftpublicationwebhook.md): webhook type: SHIFT_PUBLICATION ## Service day publication webhook - [POST Service Day Publication](https://developer.m2x.app/apis/publicapi/openapi/vehicle/servicedaypublicationwebhook.md): webhook type: SERVICE_DAY_PUBLICATION