Skip to main content

Update User

PUT 

/users/:id

Updates an existing user profile

Request

Path Parameters

    id stringrequired

    A User ID

Query Parameters

    user_id stringrequired

    The user ID of the user making the request

Body

required

    handle string

    User handle. Can only be set if the user does not already have a handle.

    name string

    Display name

    bio string

    Possible values: <= 256 characters

    User bio

    location string

    User location

    website uri

    Website URL

    donation string

    Donation link

    twitter_handle string

    Twitter handle (without @)

    instagram_handle string

    Instagram handle (without @)

    tiktok_handle string

    TikTok handle (without @)

    profile_picture string

    Profile picture CID or URL

    profile_picture_sizes string

    Profile picture sizes metadata

    cover_photo string

    Cover photo CID or URL

    cover_photo_sizes string

    Cover photo sizes metadata

    profile_type stringnullable

    Possible values: [label]

    Type of profile (e.g., 'label' for record labels)

    is_deactivated boolean

    Whether the user is deactivated

    artist_pick_track_id string

    Track hash ID to feature as artist pick

    allow_ai_attribution boolean

    Whether to allow AI attribution

    spl_usdc_payout_wallet string

    Solana USDC payout wallet address

    coin_flair_mint string

    Coin flair mint address

    playlist_library

    object

    User's playlist library with support for folders and playlists

    contents

    object[]

    required

    Array of folders and playlist identifiers

  • Array [

  • oneOf

    id stringrequired

    Unique folder identifier

    type stringrequired

    Possible values: [folder]

    name stringrequired

    Folder name

    contents

    object[]

    required

    Nested folders and playlist identifiers

  • Array [

  • oneOf

    type stringrequired

    Possible values: [playlist]

    playlist_id integerrequired

    Playlist ID

  • ]

  • ]

  • events

    object

    User events for tracking referrals and mobile users

    referrer string

    Hash ID of the user who referred this user

    is_mobile_user boolean

    Whether the user is on mobile

Responses

User updated successfully

Schema

    success boolean

    Whether the operation was successful

    transaction_hash string

    The blockchain transaction hash

Loading...