-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Is your feature request related to a problem? Please describe.
Currently we have upsert functionality in assets api wherein it searches for an asset based on urn, type and service. In case it is not found, it inserts a new row. I think we can add one more function which only updates and returns error if matching asset is not found. We have use cases where we are creating an asset from a different service and wish to update it with certain fields from a different service. Currently while updating it is also adding assets which were not present earlier which is creating a problem.
Describe the solution you'd like
We can either add a new function for update or add a flag in the upsert function which checks whether to insert in case the asset is not found.