From d01391e35a081da45c901e9e09402b5bbdc4408b Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Tue, 17 Feb 2026 16:29:44 -0800 Subject: [PATCH] Allow handle to be put --- api/swagger/swagger-v1.yaml | 3 +++ api/v1_users.go | 1 + 2 files changed, 4 insertions(+) diff --git a/api/swagger/swagger-v1.yaml b/api/swagger/swagger-v1.yaml index 65728fa7..03bc0740 100644 --- a/api/swagger/swagger-v1.yaml +++ b/api/swagger/swagger-v1.yaml @@ -10381,6 +10381,9 @@ components: type: object description: Request body for updating user profile. All fields are optional. properties: + handle: + type: string + description: User handle. Can only be set if the user does not already have a handle. name: type: string description: Display name diff --git a/api/v1_users.go b/api/v1_users.go index 18524ae1..aafef1f4 100644 --- a/api/v1_users.go +++ b/api/v1_users.go @@ -52,6 +52,7 @@ type CreateUserRequest struct { } type UpdateUserRequest struct { + Handle *string `json:"handle,omitempty" validate:"omitempty,min=1"` Name *string `json:"name,omitempty" validate:"omitempty,min=1"` Bio *string `json:"bio,omitempty" validate:"omitempty,max=256"` Location *string `json:"location,omitempty"`