Skip to main content
POST
/
api
/
v1
/
profile
Update profile
curl --request POST \
  --url http://localhost:{port}/api/v1/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "<string>",
  "status": "<string>",
  "media": {
    "data": "<string>",
    "mimetype": "<string>"
  },
  "deleteProfilePicture": true
}
'
{
  "success": true,
  "results": {
    "displayName": true,
    "status": true,
    "profilePicture": true,
    "profilePictureDeleted": true
  }
}

Authorizations

Authorization
string
header
required

JWT token authentication

Body

application/json
displayName
string

The new display name

status
string

The new status message

media
object

Media object containing the image data for profile picture

deleteProfilePicture
boolean

Whether to delete the profile picture

Response

Profile updated successfully

success
boolean
required

Whether the update operation was successful

results
object
required

Detailed results of the profile update operation