UpdateDriverAssets
UpdateDriverAssets
Overview
Allows you to update Drivers' Asset/s.
HTTP Method
Use the HTTP Method 'PUT' for consuming this web service.
Input Fields (Header)
Header should contain the 'Content-Type' Key with the Value = 'application/json' or 'application/hjson'.
Input Fields (Body)
Single Asset update: https://api.test.catch-e.com/fm/driver/assets/{{driverAssetId}}JSON Example
Multiple Assets update: https://api.test.catch-e.com/fm/driver/assets/ [ { "driver_asset_id": "3196579721328459811", "finance_asset_type_id": "16238640163402548256", "amount": 100077, "description": "An example asset description updated1" }, { "driver_asset_id": "3196579721328459812", "finance_asset_type_id": "16238640163402548256", "amount": 100088, "description": "An example asset description updated2" } ](Successful) Output Example (sample)
{ "driver_asset_id": 3196434310060077777, "driver_id": 100000, "finance_asset_type_id": 3196195708503888888, "amount": 99.88, "ownership": "debt_free", "description": "Test Asset 2", "finance_asset_type_name": "Shares", "_links": { "self": { "href": "https://api.test.catch-e.com/fm/driver/assets/3196434310060077777" } } } Error Codes
Example error output
{ "validation_messages": { "driver_asset_id": { "noRecordFound": "No record matching the input was found" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" }Was this helpful?
Still need help? Ask the team