Skip to main content
Skip table of contents

Deprecation of putAsset(AssetInputV1) Method in Connector SDK

Category

Connector SDK

Update Type

Deprecation

Deprecation Date

What

CODE
PutAsset(AssetInputV1 assetDefinition)

is being deprecated in favour of a new method signature.

When

  • Deprecated as of July 12, 2024 

  • Potential removal after July 12, 2025

Who is Affected

Connectors that build an Asset Tree might be using

CODE
putAsset(AssetInputV1 assetDefinition)

to create assets. This has been replaced by:

CODE
putAsset(PutAssetInputV1 assetDefinition)

How to Address

PutAssetInputV1 and AssetInputV1 have identical methods. To move from AssetInputV1 to PutAssetInputV1 you can modify your code as follows:

CODE
AssetInputV1 childAsset = new AssetInputV1();
childAsset.setDataId("someID");
childAsset.setName("someName");
this.connectionService.putAsset(childAsset);

Will become

CODE
PutAssetInputV1 childAsset = new PutAssetInputV1();
childAsset.setDataId("someId");
childAsset.setName("someName");
this.connectionService.putAsset(childAsset);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.