Add a Resource to an Asset
Associate an asset and a resource.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | AssetAddResource | Required |
AssetId | Int | The unique identifier of the asset which can be retrieved using Asset List. | Optional - See Tip |
AssetReference | String | The internal reference of the asset. | Optional - See Tip |
ResourceId | Int | Resource ID to be associated. | Optional - See Tip |
ResourceReference | String | Resource Reference to be associated. | Optional - See Tip |
tip
The Asset Reference or Asset Id can be supplied. If both parameters are provided, the Asset Id will used in preference.
The Resource Reference or ID can be supplied. If both parameters are provided, the Resource ID will take precedence.
The Resource Reference or ID can be supplied. If both parameters are provided, the Resource ID will take precedence.
Response Codes
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=AssetAddResource&AssetId=226330&ResourceId=36230
Response Data
{ "Code": 0, "Result": "Resource: 36230 associated to Asset: AAABBBCCC" }