Light Mode
Harmony-ChangeProfilePicture
TestedPATCH
https://harmony.photos/api/v2/dp_user_account/{{Account ID}}/Last modified: 2 months ago
Maintainer:
This API allows users to update their profile picture by providing the user ID and the profile picture in base64 format. Upon successful upload, the API returns the user ID and the URL of the newly uploaded profile picture.
Request
Header Params
User-Agent
string
required
Example:
Harmony/29 CFNetwork/1474 Darwin/23.0.0
Content-Type
string
required
Example:
application/json
Accept-Language
string
required
Example:
en-GB,en-US;q=0.9,en;q=0.8
Body Params text/plain
The request body should include the user ID and the profile picture in base64 format.
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
user
integer
required
user id
profile_picture
string
required
link of s3 image
Example
{
"user": 997,
"profile_picture": "https://harmony-media-system.s3.me-south-1.amazonaws.com/profile_pictures/2024/07/05/15/16/be32443d-2146-43b9-a3bf-b168d3447165.gif"
}
Last modified: 2 months ago