Authorizations
Body
multipart/form-data
Upload a new profile picture for the current user. Accepts image files and uploads them to the CDN service.
curl --request POST \
--url https://{deploymentHost}/me/profile-picture \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file{
"status": 200,
"message": "",
"data": {
"image_url": "https://cdn.example.com/users/profile-pictures/user_456789123_1642680000.jpg",
"has_profile_picture": true,
"uploaded_at": "2024-01-15T12:00:00Z"
},
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}curl --request POST \
--url https://{deploymentHost}/me/profile-picture \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file{
"status": 200,
"message": "",
"data": {
"image_url": "https://cdn.example.com/users/profile-pictures/user_456789123_1642680000.jpg",
"has_profile_picture": true,
"uploaded_at": "2024-01-15T12:00:00Z"
},
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}