- Docs
- Api%2Freference%2Fwallets%2FUpdateOrganizationWallet
Update an end user's account
Change one end-user account belonging to the organization in the path: their display name, phone number, language or avatar, and whether the account is switched off. Sending `disabled: true` locks the person out at once — every session they hold ends with the write, so a token already in flight stops working rather than lasting out its quarter of an hour. `disabled: false` lets them sign in again, without restoring those sessions. The account has to belong to that organization. One that belongs to another reads as `404`, the same as an identifier that does not exist, so this cannot be used to find out where an account lives. The email address and the password are not here on purpose. They are how the person signs in, and only the account holder changes them, on `PATCH /wallets/me` with the password in force now. An administrator who could set them could take the account over. Requires the `organizations.wallets.update` permission — the one that covers the organization's end users, not `wallets`, which is an account's own.
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
Identifier of the organization. Each endpoint states whether it must be the caller's active organization or may be used without authentication.
Identifier of the end user's account to update.
Request Body
application/json
Profile 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
curl -X PATCH "https://api.dual.network/organizations/665f1c2d4b1a2c3d4e5f6aa0/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": 5,
"message": "object not found"
}{
"code": 13,
"message": "internal error"
}