curl --request PUT \
--url https://api.supernotes.app/v1/user \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"new_username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"bio": "<string>",
"photo": "<string>"
}'
{
"private_data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"referral_code": "<string>",
"bio": "<string>",
"photo": "<string>",
"kind": 0,
"prefs": {
"indent_type": 0,
"sort_type": 0,
"appearance_mode": -1,
"day_theme": 1,
"night_theme": 1,
"couple_key": "<string>",
"persona": 0,
"haptic_threshold": 0,
"daily_append_format": "plain"
},
"pref_flags": 123,
"feature_preview_flags": 123,
"pins": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": -2,
"access_level": -1,
"signup_when": "2023-11-07T05:31:56Z"
},
"public_profile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"bio": "<string>",
"photo": "<string>"
}
}
Update the authenticated user’s personal information
curl --request PUT \
--url https://api.supernotes.app/v1/user \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"new_username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"bio": "<string>",
"photo": "<string>"
}'
{
"private_data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"referral_code": "<string>",
"bio": "<string>",
"photo": "<string>",
"kind": 0,
"prefs": {
"indent_type": 0,
"sort_type": 0,
"appearance_mode": -1,
"day_theme": 1,
"night_theme": 1,
"couple_key": "<string>",
"persona": 0,
"haptic_threshold": 0,
"daily_append_format": "plain"
},
"pref_flags": 123,
"feature_preview_flags": 123,
"pins": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": -2,
"access_level": -1,
"signup_when": "2023-11-07T05:31:56Z"
},
"public_profile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"bio": "<string>",
"photo": "<string>"
}
}
Successful Response
The response is of type object
.