Update the name of an existing ledger.
curl --request PUT \
--url http://localhost:5001/ledgers/{id} \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Customer Savings Ledger"
}'
{
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"name": "Updated Customer Savings Ledger",
"created_at": "2024-02-20T05:28:03.558281542Z",
"meta_data": {
"project_owner": "Acme LLC",
"description": "For all savings account created & managed by Acme."
}
}
X-blnk-key: <api-key>.
Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.
See also: Secure your Blnk server
ledger_id of the ledger whose name you want to update.curl --request PUT \
--url http://localhost:5001/ledgers/{id} \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Customer Savings Ledger"
}'
{
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"name": "Updated Customer Savings Ledger",
"created_at": "2024-02-20T05:28:03.558281542Z",
"meta_data": {
"project_owner": "Acme LLC",
"description": "For all savings account created & managed by Acme."
}
}
Was this page helpful?
curl --request PUT \
--url http://localhost:5001/ledgers/{id} \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Customer Savings Ledger"
}'
{
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"name": "Updated Customer Savings Ledger",
"created_at": "2024-02-20T05:28:03.558281542Z",
"meta_data": {
"project_owner": "Acme LLC",
"description": "For all savings account created & managed by Acme."
}
}