Skip to main content

Update Wallet

Route

PUT
/api/v1/wallets/:id

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request PUT "$LAGO_URL/api/v1/wallets/:id" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"wallet": {
"name": "new_name",
"expiration_date": "2022-07-07"
}
}'

Arguments

{
"wallet": {
"name": "new name",
"expiration_date": "2022-07-07",
}
}
AttributesTypeDescription
nameString      OptionalNew wallet name.
expiration_dateString      OptionalDate that identifies wallet expiration

Responses

The wallet was successfully updated

Returns an wallet object.