How to update the image that represents a collateral item associated with a loan account.
This request uploads a collateral image into LoanPro. Each collateral item has an associated image (referred to as an avatar) that is displayed on loan accounts and is updated through this endpoint. Unlike some of our other upload requests, this request is completed in one step.
Update collateral image
To update a collateral image, send a POST
request to the following endpoint:
https://loanpro.simnang.com/api/public/api/1/Collateral/{id}/avatar
The {id}
used in the request is the ID of the collateral item you are updating. You can retrieve this ID by sending a GET
Collateral request.
Below is an example payload, in cURL, to update a collateral image. Note that this request uses the form-data content type to upload a file.
curl --location 'loanpro.simnang.com/api/public/api/1/Collateral/277/avatar' \
--header 'Autopal-Instance-Id: <Tenant ID>' \
--header 'Authorization: <Bearer token>' \
--header 'Content-Type: application/json' \
--form 'upload=@"/C:/Users/John.Doe/Downloads/idHDABHEzr.png"' \
--form 'skipProcessing="true"'
A successful request returns the S3 bucket URL of the uploaded image:
{
"d": {
"url": "https://autopal-fandora.s3.amazonaws.com/tenants/5203274/loans/752/collateral/277/avater.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=IQoJb3..."
}
}
If you're a Postman user, you can upload files by selecting the 'form-data' body type, then creating upload
and skipProcessing
keys. Set upload
to file type, upload your file, and set skipProcessing
to true
.
How avatars are presented within the LoanPro UI:
