Skip to main content
Parked

Cognite Data Fusion: Idempotent/Upsert CogniteClient

Related products:API and SDKs

Anders  Albert
Seasoned Practitioner

I would like to have an option for an idempotent option for the Cognite Client. For example, I can add the same asset multiple times without rising an exception.

Use Case: I have a script (running on a schedule in Cognite Functon) which dynamically create an asset hierarchy. 

Current behavior: If I try to add a list of assets in which one asset is existing in CDF, then no new assets are appended to the hierarchy and an exception is raised.

Desired behavior: An option for suppressing the raised exception and add the new assets to the asset hierarchy.

``client.assets.create(new_assets, skip_existing=True)``

Anita Hæhre
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Academy and Community
  • January 13, 2022
Updated idea statusNewGathering Interest

Anita Hæhre
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Academy and Community
  • August 22, 2022
Gathering InterestParked


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings