Frontend API
cURL
curl --request POST \ --url https://api.wacht.dev/me/profile-picture \ --header 'Content-Type: multipart/form-data' \ --cookie session_id= \ --form file='@example-file'
{ "id": "123456789012345678", "first_name": "John", "last_name": "Doe", "username": "johndoe", "email": "john@example.com", "profile_picture_url": "https://cdn.wacht.dev/avatars/123.jpg", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "primary_email_address_id": "<string>", "primary_phone_number_id": "<string>", "second_factor_policy": "none", "backup_codes_generated": true, "has_password": true, "has_passkeys": true, "disabled": true }
Upload a profile picture for the user
Profile picture uploaded
"123456789012345678"
"John"
"Doe"
"johndoe"
"john@example.com"
"https://cdn.wacht.dev/avatars/123.jpg"
none
enforced
Was this page helpful?