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
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
planLevels*array<>

Response Body

How many plan items were deleted

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