Skip to main content
PUT
/
borrowers
/
{id}
Update borrower
curl --request PUT \
  --url https://lms.tausi.africa/v1/borrowers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "country": "<string>",
  "business_name": "<string>",
  "phone": "<string>",
  "email": "[email protected]",
  "address": "<string>",
  "type": "<string>",
  "region": "<string>"
}
'
{
  "item": {
    "id": 123,
    "business_name": "<string>",
    "phone": "<string>",
    "address": "<string>",
    "type": "<string>",
    "region": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "country": "<string>",
    "email": "[email protected]",
    "credit_score": 123
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer<int64>
required

Body

application/json
country
string
business_name
string
phone
string
email
string<email>
address
string
type
string
region
string

Response

Borrower updated successfully.

item
object
required
success
boolean
required
Example:

true