Adjust the Cost of an Asset
You want to adjust the cost of an asset by $3000.
Example URL
Here's an example of the resource URL:
POST
fscmRestApi/resources/11.13.18.05/erpintegrations
cURL Command
curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations
Example Request
Here's an example of the request body in JSON format:
{
"OperationName": "processTransaction-adjustAsset",
"ParameterList": "{P_ASSET_ID:132167,P_BOOK_TYPE_CODE: BI CORP,P_COST: 3000,P_TRX_ATTRIBUTE1:d,P_TRX_ATTRIBUTE2:e}"
}
Example Response
Here's an example of the response body in JSON format:
{
"OperationName": "processTransaction-adjustAsset",
"DocumentId": null,
"DocumentContent": null,
"FileName": null,
"ContentType": null,
"FileType": null,
"DocumentAccount": null,
"Comments": null,
"ProcessName": null,
"LoadRequestId": null,
"JobPackageName": null,
"JobDefName": null,
"ReqstId": null,
"RequestStatus": null,
"JobName": null,
"ParameterList": "{\"X_TRANSACTION_HEADER_ID\":\"209900\",\"X_RETURN_STATUS\":\"S\"}",
"NotificationCode": null,
"CallbackURL": null,
"JobOptions": null,
"StatusCode": null,
"ESSParameters": null,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-adjustAsset",
"name": "erpintegrations",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-adjustAsset",
"name": "erpintegrations",
"kind": "item"
}
]
}