Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions api/swagger/swagger-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3623,6 +3623,45 @@ paths:
"500":
description: Server error
content: {}
put:
tags:
- users
description: Updates an existing user profile
operationId: Update User
security:
- BasicAuth: []
parameters:
- name: id
in: path
description: A User ID
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/update_user_request'
responses:
"200":
description: User updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/write_response'
"400":
description: Bad request
content: {}
"401":
description: Unauthorized
content: {}
"404":
description: User not found
content: {}
"500":
description: Server error
content: {}
/users/{id}/albums:
get:
tags:
Expand Down Expand Up @@ -9592,6 +9631,11 @@ components:
cover_photo_sizes:
type: string
description: Cover photo sizes metadata
profile_type:
type: string
nullable: true
enum: [label]
description: Type of profile (e.g., 'label' for record labels)
allow_ai_attribution:
type: boolean
description: Whether to allow AI attribution
Expand Down Expand Up @@ -9640,6 +9684,11 @@ components:
cover_photo_sizes:
type: string
description: Cover photo sizes metadata
profile_type:
type: string
nullable: true
enum: [label]
description: Type of profile (e.g., 'label' for record labels)
is_deactivated:
type: boolean
description: Whether the user is deactivated
Expand Down
2 changes: 2 additions & 0 deletions api/v1_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type CreateUserRequest struct {
ProfilePictureSizes *string `json:"profile_picture_sizes,omitempty"`
CoverPhoto *string `json:"cover_photo,omitempty"`
CoverPhotoSizes *string `json:"cover_photo_sizes,omitempty"`
ProfileType *string `json:"profile_type,omitempty" validate:"omitempty,oneof=label"`
AllowAiAttribution *bool `json:"allow_ai_attribution,omitempty"`
SplUsdcPayoutWallet *string `json:"spl_usdc_payout_wallet,omitempty"`
}
Expand All @@ -59,6 +60,7 @@ type UpdateUserRequest struct {
ProfilePictureSizes *string `json:"profile_picture_sizes,omitempty"`
CoverPhoto *string `json:"cover_photo,omitempty"`
CoverPhotoSizes *string `json:"cover_photo_sizes,omitempty"`
ProfileType *string `json:"profile_type,omitempty" validate:"omitempty,oneof=label"`
IsDeactivated *bool `json:"is_deactivated,omitempty"`
ArtistPickTrackId *string `json:"artist_pick_track_id,omitempty"`
AllowAiAttribution *bool `json:"allow_ai_attribution,omitempty"`
Expand Down
Loading