Update current user
PUT
/users/me
users
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://trashnothing.com/api/v1.2/users/me'
Response Response Example
200 - Example 1
{
"about_me": "I used to be an accountant but then I decided to become a pirate.",
"country": "US",
"digest": "6_hours",
"digest_photos": false,
"email": {
"address": "johndoe@example.com",
"bouncing": false,
"spam_stop": false,
"verified": true
},
"firstname": "Jack",
"has_password": false,
"last_listings_view": "2018-02-15T15:04:47",
"lastname": "Carter",
"location": {
"latitude": 39.766098,
"longitude": -105.077206,
"name": "Wheat Ridge, CO, USA",
"radius'": 32186.88
},
"member_since": "2009-09-25T14:20:01",
"post_location": {
"latitude": 39.766098,
"longitude": -105.077206,
"name": "Wheat Ridge"
},
"post_reminders": true,
"profile_image": "https://gravatar.com/avatar/88305a95b05b30f6cd306019ea5d88f3?s=90&r=pg&default=identicon",
"profile_image_source": "gravatar",
"public_name": false,
"public_post_sources": [
"trashnothing"
],
"show_all_group_posts": true,
"signup": "2017-11-20T04:32:06",
"special_notices": true,
"user_id": 119458,
"username": "captainjack",
"uses_fair_offer_policy": true,
"verified": true
}
Request
Body Params multipart/form-data
about_me
string
optional
digest
string
optional
To disable digests, set this to an empty string.
digest_photos
string
optional
firstname
string
optional
last_listings_view
string
optional
lastname
string
optional
old_password
string
optional
password
string
optional
NOTE: The password and old_password properties can NOT be used when the user property has_password is false. Instead, use the password reset endpoint to have a new password emailed to the user.
post_reminders
string
optional
profile_image_source
string
optional
public_name
string
optional
public_post_sources
string
optional
If not passed, all sources will be enabled.
If set to an empty string, no sources will be enabled which effectively disables public posts for the user so that the user will only see posts from the groups they are a member of. Setting to an empty string is only allowed if the user is a member of one or more groups.
show_all_group_posts
string
optional
special_notices
string
optional
Responses
Modified at 2022-09-11 18:59:48