Sqabl APIs
  1. User
Sqabl APIs
  • APIs
    • Auth
      • Sign Up
      • Sign In
      • Sign Out
      • Refresh Access Token
      • Get user by token
      • Change password
    • OTP
      • Verify OTP
      • Generate OTP
      • OTP Status
    • User
      • Get user
        GET
      • Get user by token
        GET
      • Update user
        PUT
      • Get user's followers
        GET
      • Get user's followees
        GET
      • Get user's referred members
        GET
      • Get user's interacted items
        GET
      • Get user's bookmarks
        GET
      • Flag a user
        POST
      • Follow user
        POST
      • Unfollow user
        DELETE
      • Block a user
        POST
      • Unblock a user
        DELETE
      • Delete user's picture
        DELETE
      • Delete user
        DELETE
    • Users
      • Get users
    • Arenas
      • Get arenas
      • Create an arena
      • Invite users to arenas
    • Arena
      • Get arena
      • Update arena
      • Join an arena
      • Leave an arena
      • Get arena members
      • Add users to arena
      • Remove members from an arena
      • Update an arena member
    • Posts
      • Get posts
      • Create a post
    • Post
      • Get a post
      • Update a post
      • Delete a post
      • Flag a post
      • Flame a post
      • Unflame a post
      • Save a post
      • Unsave a post
      • Hide a post
      • Get post participants
      • Participate in a post
      • Get post comments
      • Comment on a post
    • Comment
      • Get comment
      • Delete a comment
      • Flag a comment
      • Flame a comment
      • Unflame a comment
      • Save a comment
      • Unsave a comment
    • Alerts
      • Get user's alerts
      • Mark some or all alerts read
    • Flags
      • get flags
    • Faqs
      • get faqs
    • Interests
      • get interests
    • Search
      • get popular search keywords
    • Signed Upload URL
      • get signed url for upload
  1. User

Update user

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
PUT
/user/{id}
Update user's information

Request

Path Params
id
string 
required
Header Params
Authorization
string 
required
This is provided, if the access token is not set in the cookie.
Example:
Bearer some-random-token
Body Params multipart/form-data
displayName
string 
optional
firstName
string 
optional
lastName
string 
optional
description
string 
optional
country
string 
optional
imageFile
file 
optional
User picture file
coverFile
file 
optional
User cover file
imageSrc
string 
optional
User picture file url
coverSrc
string 
optional
User cover file url
interests
string 
optional
Must,be,comma,separated,interests
password
string 
optional
enableAllNotifications
boolean 
optional
enableEmailNotifications
boolean 
optional
enablePushNotifications
boolean 
optional
fcmDeviceToken
string 
optional
Required if enabling all or push notifications.
userDeviceId
string 
optional
Required if enabling all or push notifications.
facebookUrl
string 
optional
instagramUrl
string 
optional
linkedInUrl
string 
optional
xUrl
string 
optional
refereeCode
string 
optional
The code used to sign up; the "referral-code" of another user used.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.sqabl.com/v1/user/' \
--header 'Authorization: Bearer some-random-token' \
--form 'displayName=""' \
--form 'firstName=""' \
--form 'lastName=""' \
--form 'description=""' \
--form 'country=""' \
--form 'imageFile=@""' \
--form 'coverFile=@""' \
--form 'imageSrc=""' \
--form 'coverSrc=""' \
--form 'interests=""' \
--form 'password=""' \
--form 'enableAllNotifications=""' \
--form 'enableEmailNotifications=""' \
--form 'enablePushNotifications=""' \
--form 'fcmDeviceToken=""' \
--form 'userDeviceId=""' \
--form 'facebookUrl=""' \
--form 'instagramUrl=""' \
--form 'linkedInUrl=""' \
--form 'xUrl=""' \
--form 'refereeCode=""'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "statusCode": 200,
    "data": {
        "id": "string",
        "email": "string",
        "displayName": "string",
        "...": "..."
    }
}
Previous
Get user by token
Next
Get user's followers
Built with