PATCH api request - Ability to partially edit records
Ally D'Ambrosio
Please please please! We love Fulcrum and want to use it more within our integrated systems, but this is a huge blocker for us. It drastically limits the engineers that can maintain the integrations.
M
Mark Gruzauskas
Bumping. It is an obvious missing feature.
This means that to make an update, a minimum of 2 requests to the API is required, which adds load to Fulcrum servers and slows down any local process, especially if you are dealing with thousands of records.
It also means that there is always a risk of wiping out data accidentally.
Kara Fox
Merged in a post:
Patch Update Endpoint
A
Ashwin Pillai
Please add support for PATCHing forms in the API. Currently, updating forms can only be done via PUT, which requires users to GET the form, make changes, and then send the entire form back, even if they only need to update a single field, such as the name. Supporting PATCH requests would streamline this process and improve efficiency.
J
Jake Dustin
Bumping because I would still love to see this.
Paul Coupe
This would be really useful, and seems a very obvious missing feature. Any ideas when this might happen? I've got potential issues if other users are standard saving a record in between the GET and PUT requests of another user; even if they've only edited a different field to the API their edits will be overwritten by the PUT request which of course has to PUT all the form_values, even if the API is only changing one field's value.
B
Blake Caldwell
Bumping, this would be great
Dave Fletcher
this is really really needed. Or allow a PUT with a subset and only update the subset.
E
Evan Arnold
I specifically want to be able to PATCH a subset of field attributes, while leaving the other attributes unmodified.
A little context as to why this is helpful.
My company is in the agricultural space. We do in-field measurements for our customers.
We have a web-app that is our system of record for "what measurements do we need to do?" Any time a record is changed on our system, we push it to Fulcrum, e.g. we change the type of measurements required, we add some notes about the measurement, and so on.
In an ideal world, I would like to
just
push an updated note. However, that is not possible. So instead, I am running into a situation where I can do a data collision. Consider the following. - Field agent adds a photo to a record.
- Record is sync'ed between Fulcrum App and web app.
- Someone on my web app adds notes to the record.
- The web app attempts to sync the notes to Fulcrum. The web app neglects to send back the photo.
- The photo is blown away.
Of course, there is a work-around. Before any update call, my app could fetch the current state of a record, do a merge of attributes, and then post the final update. HOWEVER, this is the exact purpose of a PATCH request in a RESTful API.
Bobby Estep
Evan Arnold: well said.