Skip to main content
POST
/
me
/
profile-picture
Upload profile picture
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
}

Authorizations

session_id
string
cookie
required

Body

multipart/form-data
file
file
required

Response

Profile picture uploaded

id
string<uint64>
Example:

"123456789012345678"

first_name
string
Example:

"John"

last_name
string
Example:

"Doe"

username
string
Example:

"johndoe"

email
string<email>
Example:

"john@example.com"

profile_picture_url
string<uri>
Example:

"https://cdn.wacht.dev/avatars/123.jpg"

created_at
string<date-time>
updated_at
string<date-time>
primary_email_address_id
string<uint64> | null
primary_phone_number_id
string<uint64> | null
second_factor_policy
enum<string>
Available options:
none,
enforced
backup_codes_generated
boolean
has_password
boolean
has_passkeys
boolean
disabled
boolean