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

REST Payload for Asset Relationship Creation

Accepted answer
13
Views
4
Comments
edited Mar 25, 2021 5:13AM in Maintenance 4 comments

Summary

request payload

Content

Hi,

I'd like to create asset relationship with REST API. Here is the end point I am using,

https://pod/fscmRestApi/resources/11.13.18.05/installedBaseAssets/300000003715142/child/relationships

If I use this request payload, 

{
    "AssetId": 300000003931077,
    "ItemNumber": "PANEL SW V2"
}

I got this error -

The value provided for the attribute AssetId is invalid. Value provided is {ATTRIBUTE_VALUE
}. (CSE-2340141)

 

If I use this request payload, 

{
    "ItemNumber": "PANEL SW V2"
}

I got this error - 

Attribute ItemNumber in view object AssetEO_AssetRelationship_InstalledBaseAssetVOToAssetRelationshipVO_AssetRelationshipVO cannot be set.

 
Any idea how to fix the error?
 
Thanks,
Adam

 

Version

21A

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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