trash nothing
  1. users
trash nothing
  • messages
    • List conversations
      GET
    • Mark all conversations as read
      PUT
    • Search conversations
      GET
    • Delete conversation
      DELETE
    • Archive conversation
      PUT
    • Block conversation
      PUT
    • Mark conversation as read
      PUT
    • List conversation messages
      GET
    • Reply to conversation
      POST
    • Report conversation
      POST
    • Unarchive conversation
      PUT
    • Unblock conversation
      PUT
  • misc
    • Send feedback
  • groups
    • Search groups
    • Retrieve multiple groups
    • Join groups
    • Retrieve a group
    • Submit group answers
    • Contact group moderators
    • Leave a group
  • photos
    • Create a photo
    • Retrieve multiple photos
    • Delete a photo
    • Rotate a photo
  • posts
    • List posts
    • Submit a post
    • List all posts
    • List all post changes
    • Retrieve client.js
    • Retrieve multiple posts
    • Search posts
    • Retrieve a post
    • Update a post
    • Delete a post bookmark
    • Bookmark a post
    • Retrieve post display data
    • Flag a post
    • Map a post
    • Promise an offer post
    • Reply to a post
    • Satisfy a post
    • Share a post
    • Unpromise an offer post
    • Withdraw a post
  • stories
    • List stories
    • Submit a story
    • Retrieve a story
    • Like a story
    • Unlike a story
    • Record story viewed
  • users
    • Retrieve current user
      GET
    • Update current user
      PUT
    • List current users' email alerts
      GET
    • Create an email alert
      PUT
    • Delete an email alert
      DELETE
    • Change email address
      POST
    • Set users' email address as not bouncing
      PUT
    • List current users' groups
      GET
    • Update location
      PUT
    • List current users' group notices
      GET
    • List current users' post locations
      GET
    • Save a post location for the current user
      PUT
    • List current users' posts
      GET
    • Search current users' posts
      GET
    • Set a profile image
      POST
    • List current users' profile images
      GET
    • Resend account verification email
      POST
    • Send password reset email
      POST
    • Report a user
      POST
    • Retrieve a user
      GET
    • Retrieve user display info
      GET
    • Submit feedback on a user
      POST
    • List posts by a user
      GET
    • Search posts by a user
      GET
    • Retrieve a users' profile image
      GET
  1. users

Update current user

PUT
/users/me
Update the current user. All fields are optional so requests can update just one or multiple user properties at a time.
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

Responses

🟢200The updated user data.
application/json
Body

🟠400Invalid parameter.
Modified at 2022-09-11 18:59:48
Previous
Retrieve current user
Next
List current users' email alerts
Built with