Walletguide
DevelopersAPIReferencescenarios

CategoryBases

Merges a { categoryId: amount } map into startingBasePerCategory; an amount value of 0 removes that entry (legacy bulkUpdateCategoryBases, taking proper…

POST
/wallets/{walletId}/scenarios/{id}/categoryBases

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
id*string

Row uuid

Formatuuid

Request Body

application/json
  1. body
bases*

Response Body

The updated scenario

application/json
  1. response
id*string
Formatuuid
walletId*string
Formatuuid
firestoreId*string|null
name*string
startDate*string
endMonth*string|null
startingBasePerCategory*string|number|boolean|null||array<unknown>
expectedAnnualReturn*number
Range-140737488355328 <= value <= 140737488355327
assetIds*array<>|null
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/scenarios/497f6eca-6276-4993-bfeb-53cbbbba6f08/categoryBases' \  -H 'Content-Type: application/json' \  -d '{  "bases": {    "property1": {      "value": 0,      "currency": "string"    },    "property2": {      "value": 0,      "currency": "string"    }  }}'
Example Response
{  "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"}