Mtariri
HomeNeed Help?
HomeNeed Help?
  1. Home
  • Introduction
  • Get authenticated user wallet
    GET
  • Deposit funds
    POST
  • Withdraw funds
    POST
  • Transfer funds to another user
    POST
  • List wallet transactions
    GET
  • Get authenticated user profile
    GET
  • Update authenticated user profile
    PUT
  • Get authenticated user preferences
    GET
  • Update authenticated user preferences
    PUT
  • List notifications
    GET
  • Create notification
    POST
  • Mark notification as read
    PUT
  • Find investment opportunities for authenticated lender
    GET
  • Get map markers for user profiles
    GET
  • Get map markers for loan requests
    GET
  • List loan requests
    GET
  • Create loan request (draft)
    POST
  • Get loan details
    GET
  • Update loan (borrower only)
    PUT
  • Invest in a loan
    POST
  1. Home

Update loan (borrower only)

PUT
/loans/{id}
Maintainer:Not configured
x-stoplight:{"id":"6sosh2oq1bx10"}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.mtariri.xyz/api//loans/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "borrower_id": "868af9a1-d7c5-48cf-ba53-1aa2d476c3b7",
    "title": "string",
    "description": "string",
    "amount_requested": 0,
    "interest_rate": 0,
    "repayment_period_months": 0,
    "purpose": "string",
    "risk_level": "string",
    "status": "string",
    "amount_funded": 0,
    "location_latitude": 0,
    "location_longitude": 0,
    "location_description": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "disbursement_date": "2019-08-24T14:15:22Z"
}'
Response Response Example
200 - Example 1
{
    "loan": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "borrower_id": "868af9a1-d7c5-48cf-ba53-1aa2d476c3b7",
        "title": "string",
        "description": "string",
        "amount_requested": 0,
        "interest_rate": 0,
        "repayment_period_months": 0,
        "purpose": "string",
        "risk_level": "string",
        "status": "string",
        "amount_funded": 0,
        "location_latitude": 0,
        "location_longitude": 0,
        "location_description": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z",
        "disbursement_date": "2019-08-24T14:15:22Z"
    }
}

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Loan updated
Body

🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Modified at 2025-08-17 22:22:15
Previous
Get loan details
Next
Invest in a loan
Built with