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"`