Walletguide
DevelopersAPIReferenceplanItems

Clean

Deletes every plan item whose categoryOrCategoryGroupId is not in planLevels (legacy cleanPlanItems). An empty planLevels deletes them all.

POST
/wallets/{walletId}/planItems/clean

Authorization

bearerAuth
Authorization<token>

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

walletId*string

Row uuid

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/planItems/clean" \  -H "Content-Type: application/json" \  -d '{    "planLevels": [      "63972d4e-d50a-409c-b276-98f0284d98b7"    ]  }'
{  "deleted": 0}