Update the identity associated with a balance.
curl --request PUT \
--url http://localhost:5001/balances/{id}/identity \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6"
}'
{
"message": "Balance identity updated successfully"
}
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
balance_id of the balance whose identity you want to update.curl --request PUT \
--url http://localhost:5001/balances/{id}/identity \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6"
}'
{
"message": "Balance identity updated successfully"
}
Was this page helpful?
curl --request PUT \
--url http://localhost:5001/balances/{id}/identity \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6"
}'
{
"message": "Balance identity updated successfully"
}