curl --request POST \
--url http://localhost:5001/ledgers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Customer wallets Ledger",
"meta_data": {
"project_owner": "Blnk Tech"
}
}
'{
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"name": "Customer wallets Ledger",
"created_at": "2024-02-20T05:28:03.558281542Z",
"meta_data": {
"project_owner": "Blnk Tech"
}
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Was this page helpful?
curl --request POST \
--url http://localhost:5001/ledgers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Customer wallets Ledger",
"meta_data": {
"project_owner": "Blnk Tech"
}
}
'{
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"name": "Customer wallets Ledger",
"created_at": "2024-02-20T05:28:03.558281542Z",
"meta_data": {
"project_owner": "Blnk Tech"
}
}