Walletguide
DevelopersAPIReferencemembers

Update member

Needs users:manage, in a signed-in session (legacy changeUserRole). Send a role for its preset, or a role plus an exact permissions list.

PATCH
/wallets/{walletId}/members/{userId}

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

users row uuid

Formatuuid

Request Body

application/json
  1. body
role*string

The role to grant: editor (read and write everything, connect banks) or viewer (read everything). The owner role is never granted: a wallet has exactly one owner. With permissions the role is derived from the list instead.

Value in"editor""viewer"
permissions?array<>|

An exact permission list instead of the role's preset. A list equal to a preset is stored as that role. Omit or send null for the preset.

Items1 <= items

Response Body

Updated

application/json
  1. response
ok*true
Value intrue
Example Request
curl -X PATCH 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/members/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "role": "editor"}'
Example Response
{  "ok": true}