curl --request POST \
--url https://spark.test.woodcore.co/api/v2/loans/{loanId}/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"approvedOnDate": "15 Mar 2022",
"comment": "Loan successfully approved by Opemipo",
"expectedDisbursementDate": "15 Mar 2022"
}'
{}
curl --request POST \
--url https://spark.test.woodcore.co/api/v2/loans/{loanId}/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"approvedOnDate": "15 Mar 2022",
"comment": "Loan successfully approved by Opemipo",
"expectedDisbursementDate": "15 Mar 2022"
}'
{}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
"default"
ddddd
The response is of type object
.