Bulk Update of a Resource

We have a ServiceRequest in production that currently doesn’t use the category.
The next version of our application will be populating ServiceRequest.category. How do we update all the existing ServiceRequest records with a category code? Is there a bulk update feature? I’ve read the documentation of PATCH but in all the examples seem to require an id.


There’s no standard way to do this. In principle, you’d need to query for each resource to see what the category was and the etag for that instance and submit a batch that updated each one. You could also define a custom operation. And of course, if you have access to the back-end database, you can do it the old fashioned way.