---
title: "Upsert lender configuration"
method: PUT
path: "/v1/capitals/lenders/configs"
tags: ["Lender Configs"]
---

# Upsert lender configuration

`PUT /v1/capitals/lenders/configs`

## Request

- Base URL: `https://api.paymongo.com`
- URL: `https://api.paymongo.com/v1/capitals/lenders/configs`
- Auth: HTTP basic

Creates or updates the configuration for the authenticated lender

## Request body

- UpsertLenderConfigRequest
  - `supporting_documents` SupportingDocumentConfigRequest[], required
    - `document_type` string, required
    - `required` boolean

## Response `200`

Updated lender configuration

- object: Standard response containing data and its metadata if any
  - `data` LenderConfigResponse
    - `lender_id` string
    - `offer_notification_template_id` string
    - `status` string
    - `supporting_documents` SupportingDocumentConfigResponse[]
      - `document_type` string
      - `required` boolean
  - `message` string
  - `meta` MetaDTO
    - `next` string
    - `prev` string
    - `total` integer

## Other responses

- `400`: Invalid request payload
- `500`: Internal server error

---

[API](https://skmtc.dev/paymongo/apis/paymongo-capital-api.md) - [All operations](https://skmtc.dev/paymongo/apis/paymongo-capital-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/paymongo-capital-api/revisions/5ebcf72dacae?raw)
