You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

IB asset creation with REST API

edited Mar 4, 2020 4:37AM in Maintenance 6 comments

Summary

IB asset creation with REST API

Content

Hi All,

If I use deprecated customer asset API (/fscmRestApi/resources/latest/customerAssets) to create an asset with the following payload, IB asset can be created successfully.

{
      "AssetNumber": "FIT3000-AL2",
      "Description": "FIT 3000 Cardio-Fitness Machine",
      "CustomerId": 300000177639444,
      "CustomerAccountId": 300000177639446,
      "CustomerAccountSiteUseId": 300000177639450,      
      "ItemId": 300000180336424,
      "ItemOrganizationId": 300000047274441,
      "Quantity": 1,
      "ShipmentDate": "2020-03-04T02:13:03+00:00",
      "UpdateContractFlag": "Y"
}

If I use IB asset API (/fscmRestApi/resources/latest/installedBaseAssets) to create an asset with the same payload as above, IB asset creation is always failed with the following error,

##########

Definition Item of type Attribute is not found in InstalledBaseAssets.

##########

Any idea what's missing in the payload I used for installedBaseAssets API?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!