User
Update Current User
Cards
Collections
Friends
Api Keys
Members
Profiles
Review
Share
User
- PATCHSet Preferences
- PUTSet Preference Flag
- PUTSet Feature Preview Flag
- GETGet User Email Addresses
- GETGet Email
- DELDelete Email
- PUTMake Email Primary
- GETCheck Auth
- GETCheck If Fresh Access Token
- GETGet Current User
- PUTUpdate Current User
- PUTUpdate Current User Bio And Pic
- GETGet Pins
- PUTUpdate Pins
User
Update Current User
Update the authenticated user’s personal information
PUT
/
v1
/
user
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
},
"pref_flags": 123,
"feature_preview_flags": 123,
"pins": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": -2,
"access_level": -1
},
"public_profile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"bio": "<string>",
"photo": "<string>"
}
}
Authorizations
Body
application/json
Required string length:
3 - 32
Required string length:
1 - 32
Maximum length:
32
Maximum length:
256
Maximum length:
2048
Response
200
application/json
Successful Response
Available options:
0
, 1
, 2
Available options:
0
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
Available options:
-1
, 0
, 1
Available options:
1
, 2
, 3
, 4
Available options:
1
, 2
, 3
, 4
Maximum length:
4
Available options:
0
, 1
, 2
, 3
Available options:
0
, 1
, 2
, 3
Available options:
-2
, -1
, 0
, 1
, 2
Available options:
-1
, 0
, 1
, 2
, 3
Available options:
0
, 1
, 2
, 3
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
},
"pref_flags": 123,
"feature_preview_flags": 123,
"pins": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": -2,
"access_level": -1
},
"public_profile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"bio": "<string>",
"photo": "<string>"
}
}