Edit Wallet Name
Edit your wallet name (supported on all wallet types)
Edit a Wallet's Name
Edit a specific wallet's name in your organization according to a specific wallet ID. Please note that a wallet name can take up to 32 characters maximum.
mutation UpdateWallet($where: WalletWhereUniqueInput!, $data: WalletUpdateInput!) {
updateWallet(where: $where, data: $data) {
id
name
}
}
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body (WalletWhereUniqueInput object) + (WalletUpdateInput object)
Name
Type
Description
walletId*
String
Wallet ID
walletName*
String
Wallet's New name
Example body:
{
"where": {
"id": "clllyfdk6006ybtqkwk840uei"
},
"data": {
"name": "New Wallet Name"
}
}
Response
Return values:
Name
Type
Description
id
String
Wallet ID
name
String
Updated Wallet Name
{
"data": {
"updateWallet": {
"id": "clllyfdk6006ybtqkwk840uei",
"name": "New Wallet Name"
}
}
}
How do I retrieve my wallet ID?
In order to retrieve an organization's wallet ID, you'll need to call your organization wallets query first, to fetch the wallet's ID. The query below accepts a WalletWhereInput of an organizationId
, and retrieves the wallet's ID and name in the response.
query Wallets($where: WalletWhereInput) {
wallets(where: $where) {
id
name
}
}
Try it out!
Was this helpful?