Walletguide
DevelopersAPIReferenceassetGroups

Merge

Creates the merged group, moves assets onto it, and deletes the old groups — one transaction (legacy mergeAssetGroups).

POST
/wallets/{walletId}/assetGroups/merge

Authorization

bearerAuth
headerAuthorization<token>

A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.

Path Parameters

walletId*string

Row uuid

Formatuuid

Request Body

application/json
  1. body
newAssetGroup*
assetGroupIds*array<>
Items1 <= items <= 200

Response Body

The merged (newly created) row

application/json
  1. response
id*string
Formatuuid
walletId*string
Formatuuid
firestoreId*string|null
name*string
archived*boolean
order*|
Range-140737488355328 <= value <= 140737488355327
createdTime*|
Formatdate-time
createdUserId*string|null
lastUpdatedTime*|
Formatdate-time
lastUpdatedUserId*string|null
Example Request
curl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/assetGroups/merge' \  -H 'Content-Type: application/json' \  -d '{  "newAssetGroup": {    "name": "string"  },  "assetGroupIds": [    "8da01877-f9bc-4850-bad0-015de5d25ce0"  ]}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "walletId": "0ecad4a2-3549-43fb-807e-9ff033247480",  "firestoreId": "string",  "name": "string",  "archived": true,  "order": -140737488355328,  "createdTime": "2019-08-24T14:15:22Z",  "createdUserId": "string",  "lastUpdatedTime": "2019-08-24T14:15:22Z",  "lastUpdatedUserId": "string"}