v1 Migration Guide
If migrating from version 0.2b to v1, please note the following changes.
General
- Only
api.spoke.comshould be used for thev1API. - Webhooks requests will now only contain the
spoke-signatureheader.
Stops
Removals:
| Operation | 0.2b Property | v1 Property | Notes |
|---|---|---|---|
| WRITE | stop.driver | stop.allowedDrivers | Drivers should now be provided as an array of DriverIds. |
| READ | stop.driverIdentifier | stop.allowedDrivers | Drivers will now be returned as an array of DriverIds. |
| READ | stop.allowedDriverIdentifiers | stop.allowedDrivers | Drivers will now be returned as an array of DriverIds. |
| READ | stop.etaNullReason | stop.eta.status | eta now has a status property with the same information. |
| READ | stop.timeAtStopInfoNullReason | stop.timeAtStopInfo.status | timeAtStopInfo now has a status property with the same information. |
| READ/WRITE | stop.circuitClientId | stop.clientId | When creating or reading stops, circuitClientId will now be clientId |
| READ | stop.deliveryInfo.arrivedAt | timeAtStopInfo.value.arrivedAt | This property is only available when timeAtStopInfo.status === 'available' |
Changes:
- READ:
stop.etais now an object containing both the eta value, and additional metadata about the value. - READ:
stop.timeAtStopInfostructure has changed so that the original properties are now undertimeAtStopInfo.value.*, and an additional fieldtimeAtStopInfo.statushas been added to indicate why the info is not set.
Plans
Changes:
- Previously we would allow
Driversto be added even if theirDepotdid not match the plan'sDepot. This is no longer allowed. Non-matchingDriversmust now have theirDepotchanged to match the targetPlan, or vice versa. Driverobjects are no longer returned as part ofPlanendpoint responses. Instead,DriverIdsare returned and the associated drivers must be fetched separately (if needed).