Update an application
Changed onUpdates properties on an existing application.
Uses JSON Merge Patch semantics (RFC 7396): omitted fields are unchanged, explicit values overwrite, nested objects merge recursively.
Note: Entity relationships are set when the application is created and cannot be modified afterward. There is no endpoint for adding or removing entity relationships on an existing application; GET /v0/applications/{id}/entity_relationships is read-only.
Idempotency
The Idempotency-Key header is required.
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v0/applications/{id}
- AuthHTTP bearer
Path parameters
Unique identifier for the application. Prefixed with application_.
Application ID
Headers
Unique key to ensure idempotent requests
Request body
Example request
{
"details": {
"product_name": "Growth Business Credit Line",
"credit": {
"underwriting_grade": "99",
"limit": 5000000,
"max_limit": 10000000
}
},
"documents": [
{
"document_id": "document_2N5Hk8xYmQpL9rBvC3jD",
"version": "v1"
}
]
}Response
Application updated successfully.
Example response
{
"id": "application_xyz123",
"entities": {
"account_holder_type": "commercial",
"account_holders": [
"entity_xyz123"
],
"authorized_signers": [
"entity_xyz123"
]
},
"details": {
"product_name": "Growth Business Credit Line",
"credit": {
"underwriting_grade": "99",
"limit": 5000000,
"max_limit": 10000000
}
},
"documents": [
{
"document_id": "document_2N5Hk8xYmQpL9rBvC3jD",
"version": "v1"
}
]
}Changes
- warning
added the new
autopay_authorizationenum value to the//response property for the response status - warning
added the new
cardholder_agreementenum value to the//response property for the response status - warning
added the new
deposit_agreementenum value to the//response property for the response status - warning
added the new
periodic_statementenum value to the//response property for the response status - info
added the new
autopay_authorizationenum value to the request property/// - info
added the new
autopay_authorizationenum value to the request property// - info
added the new
cardholder_agreementenum value to the request property/// - info
added the new
cardholder_agreementenum value to the request property// - info
added the new
deposit_agreementenum value to the request property/// - info
added the new
deposit_agreementenum value to the request property// - info
added the new
periodic_statementenum value to the request property/// - info
added the new
periodic_statementenum value to the request property//
- warning