You can invoke this API to change the value of assets.

APISignature
changeAssetsWebService static Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO changeAssets(Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO request)
Parameters

Name

Type

Description

request

Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO

Request object passed by the invoker method.

Request Data Object - Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO

Name

Type

Description

AssetIdsList<ID>List of asset IDs to be amended.
CartIdIDID of the cart for which an asset is being amended.
Response Data Object - Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO

Field

Type

Description

LineItemMapList<LineItemEntryDO>Line items that are amended.
ErrorsList<String>List of error messages if any error occurred.
LineItemEntryDO

Name

Type

Description

LineItemIdIDLineitem ID
LineItemSOApttus_Config2__LineItem__cLineItem SObject


Code Sample

The following code sample helps you change the value of assets.

Public Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO changeAssets() 
{
	// create and populate request object 
	Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO request = new Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO(); 

	request.CartId = 'a1I6C000000k6lmUAA';
	// list of primary asset ids to be amended
	request.AssetIds = new List<ID> {'a0e6C000001uATS', 'a0e6C000001aULM'};

	// call changeAssets API 
	Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO response = Apttus_CPQApi.CPQAssetWebService.changeAssets(request); 
	return response;
}
CODE