Hi @carpvik - I asked one of our developers to help with your questions. Please find their responses below - hope this helps, and let us know if you’re still missing some context or information.
- After the split, how does an integration read a subproject’s warehouse
progress? Is it a new field on /subprojects, an expand, or a separate
Resource?
Field `status` remains available in subproject. It can still be read. However, it will not reflect fine-grained warehouse statuses on subproject level anymore. While equipment is booked out, subproject will appear as “In progress”. Once everything is returned, status will change to “Execution done”. Afterwards, status can be changed into “Complete”, but that’s a user action.
Status transitions like “Confirmed” → “In progress” and “In progress” → “Execution done” are automatic, unless the user explicitly moves subproject to a further status. For example, sets subproject status as “Execution done”, while equipment is still booked out and not returned. In that case subproject status may no longer be accurately reflecting equipment status in the warehouse.
Note: new project statuses “In progress”, “Execution done” and “Complete” aren’t visible in API yet. They will become available under API endpoint /projectstatuses after the release.
- Will packing moments be exposed as a queryable resource, with their derived
status and a link back to the subproject and its equipment? That seems to
be where the warehouse truth lives after the release, so it would be very
useful to have it in the API.
We are not planning to expose packing moments through API. Moments won’t reflect booking status anyway, because equipment under single packing moment can still be spread across multiple warehouse statuses.
- Will warehouse status also be readable per equipment item — i.e. on
/projectequipment? For anything that reacts to gear going out and coming
back, per-item state is the level that actually matters, and today the API
only exposes has_missings and warehouse_reservations.
No, warehouse status won’t be readable per equipment item. Single equipment line may be scattered across multiple warehouse statuses still.
- Which status writes on /subprojects remain valid after the split, and which
will start being rejected?
Only statuses, returned by /projectstatuses endpoint will be allowed in subproject status.
- On release day, what happens to subprojects whose status is currently a
warehouse value such as “Returned” or “On location”? Are they converted,
cleared, or left holding a value that is no longer selectable? A fair share
of our recent subprojects are in that state, so this decides whether our
historical data stays readable.
During migration, existing subprojects will receive corresponding status updates. All the warehouse statuses (Prepped, On location, custom statuses), that aren’t “Returned”, will be changed into “In progress”. Status “Returned” will be changed into “Execution done”. Note that all booked equipment will remain in their respective statuses: the migration doesn’t affect any equipment that’s already booked out.
- Will the API documentation for the new read path be published before the
release? The changelog recommends migrating now, which is hard to act on
while the replacement isn’t documented yet.
Upcoming changes in API will be minimal. Project statuses and warehouse statuses are already exposed as endpoints /projectstatuses and /warehousestatuses respectively. They are visible under https://api.rentman.net.
The only change, that will still happen: there will be a new field “ready_to_pack” on subproject level (documentation about “Ready to pack” feature itself will follow).