cURL
curl --request PATCH \ --url https://api.bunship.com/api/v1/users/me \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "fullName": "<string>", "avatarUrl": {}, "preferences": { "preferences.theme": "<string>", "preferences.language": "<string>", "preferences.timezone": "<string>", "preferences.notifications": {} } } '
{ "id": "usr_cld2abc123def456", "email": "[email protected]", "emailVerified": "2024-01-15T10:30:00Z", "fullName": "Jane Doe", "avatarUrl": null, "preferences": { "theme": "light", "language": "en", "timezone": "Europe/London", "notifications": { "email": true, "push": true } }, "twoFactorEnabled": false, "isActive": true, "createdAt": "2024-01-15T10:00:00Z", "updatedAt": "2024-01-21T09:00:00Z" }
Update the authenticated user’s profile
null
Show preferences properties
"light"
"dark"
"system"
"en"
"fr"
"America/New_York"
email
push
400
VALIDATION_ERROR
401
AUTHENTICATION_ERROR
404
NOT_FOUND
curl -X PATCH https://api.bunship.com/api/v1/users/me \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \ -H "Content-Type: application/json" \ -d '{ "fullName": "Jane Doe", "preferences": { "theme": "light", "timezone": "Europe/London" } }'