User-related API environment
Production user-related API docs
These pages describe the Production user-related API stack.
Use production OAuth credentials, production API base URLs, and production app URLs when following this documentation.
Need to test before going live? Switch to the Pre-live docs using the environment switcher above.
Update user profile
Update user profile information including name, bio, username, avatar, and social links. Validates username uniqueness.
Request Body required
Profile fields to update wrapped in a user object
user object required
Possible values: Value must match regular expression /^data:image\/[a-z]+;base64,/
- 200
- 400
- 401
Profile updated and returned with new values
Schema
settings object
Hide follow suggestion popup after liking a post
Show featured follow suggestion popup on Quran Reflect onboarding
Default value: false
Default value: false
Default value: 0
Default value: 0
Default value: 0
Default value: false
Default value: en
{
"avatarUrls": {
"small": "https://avatars.githubusercontent.com/u/12345678",
"medium": "https://avatars.githubusercontent.com/u/12345678",
"large": "https://avatars.githubusercontent.com/u/12345678"
},
"settings": {
"ayahLanguages": [
0
],
"reflectionLanguages": [
0
],
"customized": true,
"hideFollowSuggestion": true,
"showFollowFeaturedSuggestion": true
},
"createdAt": "2000-01-21 00:00:00",
"joiningYear": 2025,
"username": "string",
"id": "string",
"verified": false,
"postAs": false,
"firstName": "string",
"lastName": "string",
"postsCount": 0,
"languageId": 0,
"followersCount": 0,
"likesCount": 0,
"isAdmin": false,
"languageIsoCode": "en",
"bio": "string",
"country": "string",
"followed": true
}
{
"avatarUrls": {
"small": "https://avatars.githubusercontent.com/u/12345678",
"medium": "https://avatars.githubusercontent.com/u/12345678",
"large": "https://avatars.githubusercontent.com/u/12345678"
},
"settings": {
"ayahLanguages": [
1
],
"reflectionLanguages": [
1
],
"customized": true,
"hideFollowSuggestion": true,
"showFollowFeaturedSuggestion": true
},
"createdAt": "2000-01-21 00:00:00",
"joiningYear": 2025,
"username": "string",
"id": "string",
"verified": false,
"postAs": false,
"firstName": "string",
"lastName": "string",
"postsCount": 0,
"languageId": 1,
"followersCount": 0,
"likesCount": 0,
"isAdmin": false,
"languageIsoCode": "en",
"bio": "string",
"country": "string",
"followed": true
}
Invalid profile data or username taken
User not authenticated