Ledger balances
Update balance identity
Update the identity associated with a balance.
PUT
/
balances
/
{id}
/
identity
curl -X PUT "http://localhost:5001/balances/{id}/identity" \
-H "X-blnk-key: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6"
}'
{
"message": "Balance identity updated successfully"
}
{
"error": "Identity with ID 'idt_00000000-0000-0000-0000-000000000000' not found",
"error_detail": {
"code": "BAL_NOT_FOUND",
"message": "Identity with ID 'idt_00000000-0000-0000-0000-000000000000' not found"
}
}
If you’re using the auto-provisioned
Enterprise Core instance included with your Production License deployment, set the base URL to: https://ENTERPRISE_PUBLIC_URL/core.If you’re connecting to a different Core instance, use the publicly accessible base URL for that instance instead.Authorization
If set, the API uses an API key for authentication. Include the following header in your requests: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: Scoped API keys and Secure your Blnk server.
Path
string
required
Unique
balance_id of the balance whose identity you want to update.Body
string
required
The new identity ID to associate with the balance. Must be a valid existing identity ID.
curl -X PUT "http://localhost:5001/balances/{id}/identity" \
-H "X-blnk-key: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6"
}'
{
"message": "Balance identity updated successfully"
}
{
"error": "Identity with ID 'idt_00000000-0000-0000-0000-000000000000' not found",
"error_detail": {
"code": "BAL_NOT_FOUND",
"message": "Identity with ID 'idt_00000000-0000-0000-0000-000000000000' not found"
}
}
Need help?
We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.Was this page helpful?
⌘I
curl -X PUT "http://localhost:5001/balances/{id}/identity" \
-H "X-blnk-key: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6"
}'
{
"message": "Balance identity updated successfully"
}
{
"error": "Identity with ID 'idt_00000000-0000-0000-0000-000000000000' not found",
"error_detail": {
"code": "BAL_NOT_FOUND",
"message": "Identity with ID 'idt_00000000-0000-0000-0000-000000000000' not found"
}
}