📣 this endpoint updates authenticated user avatar . In this POST request , uploads and updates the user avatar data✳ list of POST payload data parameters
avatar = file with user avatar
📢 Info message : Here URL is contructed likePOST/v1/auth/profiles/avatar
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data
Request Code 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 'http://localhost:8080/v1/auth/profiles/avatar' \
--form'avatar=@"/home/raka/Downloads/Group 3.png"'
Responses
🟢200OK
application/json
Body
Example
{"message":"Profile Avater is updated successfully.","result":"avatar-1774737328401551360.png","success":true}