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

Delete user's picture

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
DELETE
/user/{id}/picture

Request

Path Params
id
string 
required
Header Params
Authorization
string 
required
Example:
Bearer some-random-token
Body Params application/json
type
enum<string> 
required
Which picture to delete?
Allowed values:
profile-picturecover-picture
Example
{
    "type": "profile-picture"
}

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 DELETE 'https://api.sqabl.com/v1/user//picture' \
--header 'Authorization: Bearer some-random-token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "profile-picture"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "statusCode": 200,
    "data": {
        "user": {
            "id": "cm1jb6nsf000008jp4poz6y4n",
            "email": "hiseous@gmail.com",
            "displayName": "Hisoeus Hiseous",
            "firstName": "Hiseous",
            "lastName": "Hiseous",
            "country": "Nigeria",
            "description": "some new user's description"
        }
    }
}
Previous
Unblock a user
Next
Delete user
Built with