update
update
Updates a user’s basic account information and preferences.
Parameters
| Name | Description |
| user_id required | User ID |
| node_id optional | Node ID |
| domain optional | Domain |
| email optional | Email Address |
| username optional | Username |
| password optional | Password |
| subdir optional | Subdir |
| first_name optional | First name |
| last_name optional | Last Name |
| display_name optional | Display Name |
| birthday optional | Date of Birth (Unix Timestamp) |
| gender optional | Gender |
| avatar optional | Avatar (URL or Photo ID) |
| ip optional | IP Address |
| account_status optional | Account Status |
| phone optional | Phone Number |
| address optional | Street Address |
| address_2 optional | Street Address 2 |
| city optional | City |
| state optional | State |
| zip optional | Zip Code |
| country optional | Country |
| last_blog_visited optional | Last Blog Visited |
| quote optional | Personal Quote |
| timezone optional | Timezone |
| account_type optional | Account Type |
| geo_zip optional | Geo Zip |
| geo_market optional | Geo Market |
| locale optional | Locale (Language/Country Code) |
| location optional | Custom Location |
| last_login optional | Last Login (Unix Timestamp) |
| last_activity optional | Last Activity (Unix Timestamp) |
| message_privacy optional | Message Privacy |
| friends_approval optional | Friends Approval |
| comments_approval optional | Comments Approval |
| allow_html_comments optional | Allow HTML Comments |
| email_notification optional | Email Notification |
| group_broadcast optional | Receive Group Broadcasts |
| show_online_status optional | Show Online Status |
| is_searchable optional | Appears in Search Results |
| dob_display optional | Birthday Display |
| qa_friends_only optional | Quick Actions From Friends Only |
| qa_page_visible optional | Make Quick Actions Public |
| qa_email optional | Quick Action Notification Email |
| show_favorites optional | Show Favorites |
| site_privacy optional | Site Privacy |
| activity_privacy optional | Activity Privacy |
| friendship_acceptance_email optional | Email Notification on Friendship Acceptance |
| friendship_privacy optional | Friendship Privacy |
| new_group_member_email optional | Email Notification When New Member Joins Group |
| network_activity_digest optional | Receive Network Activity Digest Email |
Request Syntax
| https://services.onesite.com/1/user/update.json?user_id=229928503&address=14000 Quail Springs Pkwy&address_2=Suite 3600&city=Oklahoma City&state=OK&zip=73134&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
{ "code":100, "message":"User updated.", "content":{ "user":{ "UserID":229928503, "Username":"onesitedemo", "Email":"not_an_email@onesite.com", "Site":{ "SiteID":234714047, "Subdir":"onedemo", "URL":"http://www.onesitedemo.com/onedemo" }, "Avatar":"http://services.onesite.com/resources/images/unisex_v4b.gif?ver=13.06.21", "Name":"ONEsite", "AccountStatus":"good-standing", "DateCreated":1547859723, "Profile":{ "Birthday":852098400, "FirstName":"ONEsite", "LastName":"", "Gender":"Unspecified", "Address":"14000 Quail Springs Pkwy", "Address2":"Suite 3600", "City":"Oklahoma City", "State":"OK", "Zip":"73134", "Location":"", "Timezone":0, "Quote":"", "Language":"en_US" }, "Preferences":{ "BirthdayDisplay":"private", "FriendshipApproval":0, "CommentsApproval":2, "MessagePrivacy":0, "EmailNotification":"ongoing", "Searchable":true, "ShowOnlineStatus":true }, "ExternalAccounts":[ { "ProviderName":"facebook", "UserIdentifier":"100003605854098", "AccessToken":"AAABiJIiZCZCFsBAFoxzERj96ATjIFG64wl85e1Q80yDeombreCD3vMDdWVg9uKm24a04SZCbUkhnOv7M2Q7ZBXqdVvtQrvFwBNcyvXJ7UwZDZD" }, { "ProviderName":"twitter", "UserIdentifier":"12345678", "AccessToken":"thisisnotarealaccesstoken" } ], "Tiers":[ 1 ] } } } |
Service Information
| Service | user |
| Method | update |
| Type | REST |
| Response Types | JSON, XML |