Managing card passwords

To change an active card password, use the method in the example below:

const walletId = '2724434a-22fd-484e-b7da-596ffb1908ca';
const cardId = 'e79e22f7-b6a1-4963-802d-00eb7c0dfd95';

await bitcapital.cards().password(walletId, {
  // The card to be activated
  cardId,
  // The new card password
  password: '1234',
});
curl --location --request POST "$BASE_URL/wallets/$WALLET_ID/cards/$CARD_ID/password" \
--header 'Authorization: Bearer 0000000000000000000000000000000000000000'\
--header 'Content-Type: application/json' \
--data-raw '{
	"password": "1234",
	"comment": "Perda"
}'