Users - BevvyTech/BrewskiDocs GitHub Wiki
| Method | Path | Description |
|---|---|---|
PATCH |
/users/:userId |
Owners/admins update a member's profile details. |
-
Auth: Bearer token. Caller must be owner/admin in a team shared with
userId. -
Body (at least one field required):
{ "name": "Updated Name", "avatarUrl": "https://cdn.example.com/avatar.png" } -
Response 200:
{ "user": { "id": "d1a8b2a2-2ee5-4930-a744-9d4ce6c6ff15", "email": "[email protected]", "name": "Updated Name", "avatarUrl": "https://cdn.example.com/avatar.png", "updatedAt": "2025-02-04T12:08:10.123Z" } } -
Errors:
-
401 Unauthorized– missing/invalid token. -
403 Forbidden– caller lacks owner/admin rights for the user's team. -
400 Bad Request– no updatable fields supplied.
-