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

# Upsert lender configuration

`PUT /v1/capitals/lenders/configs`

Creates or updates the configuration for the authenticated lender

## Request body

- InternalLenderHandlerUpsertLenderConfigRequest
  - `supporting_documents` InternalLenderHandlerSupportingDocumentConfigRequest[], required
    - `document_type` string, required
    - `required` boolean

## Response `200`

Updated lender configuration

- object — Standard response containing data and its metadata if any
  - `data` InternalLenderHandlerLenderConfigResponse
    - `lender_id` string
    - `offer_notification_template_id` string
    - `status` string
    - `supporting_documents` InternalLenderHandlerSupportingDocumentConfigResponse[]
      - `document_type` string
      - `required` boolean
  - `message` string
  - `meta` GithubComPaymongoCapitalGoApiPkgDtoMetaDTO
    - `next` string
    - `prev` string
    - `total` integer

## Other responses

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

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/revisions/c18f9a027b2c/schema)
