CategoryBase
Merges { categoryId, amount } into the scenario startingBasePerCategory jsonb; an amount value of 0 removes the entry (legacy updateCategoryBase…
Authorization
bearerAuth A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.
In: header
Path Parameters
Row uuid
uuidRow uuid
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/scenarios/497f6eca-6276-4993-bfeb-53cbbbba6f08/categoryBase" \ -H "Content-Type: application/json" \ -d '{ "categoryId": "string", "amount": { "value": 0, "currency": "string" } }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "walletId": "0ecad4a2-3549-43fb-807e-9ff033247480", "firestoreId": "string", "name": "string", "startDate": "string", "endMonth": "string", "startingBasePerCategory": "string", "expectedAnnualReturn": -140737488355328, "assetIds": [ "96fa1cd8-4f1c-475e-ac07-c52694e711b7" ], "createdTime": "2019-08-24T14:15:22Z", "createdUserId": "string", "lastUpdatedTime": "2019-08-24T14:15:22Z", "lastUpdatedUserId": "string"}ChangeEvents
Takes the whole desired change-event map (keyed by change-event id) and diffs it against the stored rows: new keys are created, changed entries updated…
CategoryBases
Merges a { categoryId: amount } map into startingBasePerCategory; an amount value of 0 removes that entry (legacy bulkUpdateCategoryBases, taking proper…