Update a wallet by id

Change one account by its identifier. You can only change your own account this way — the same thing as `PATCH /wallets/me`, addressed differently. Anything else comes back as `403`. The authentication-field rules are the same: send `current_password` with a new `password` or `email`; a password change ends every session and an email change starts verification of the new address. Requires the `wallets.update` permission.

PATCH
/wallets/{id}
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Path Parameters

id*string

Identifier of the wallet to update.

Request Body

application/json

Account fields to change. Send only fields that need updating.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.dual.network/wallets/string" \  -H "Content-Type: application/json" \  -d '{    "nickname": "alexf",    "language": "de"  }'
{}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 7,
  "message": "forbidden"
}
{
  "code": 5,
  "message": "object not found"
}
{
  "code": 13,
  "message": "internal error"
}