Dummy JSON
  1. Users
Dummy JSON
  • Start your journey
  • Dummy JSON
    • Auth
      • Login user and get tokens
      • Get current auth user
    • Users
      • Get all users
        GET
      • Get a single user
        GET
      • Add a new user
        POST
      • Update a user
        PUT
      • Delete a user
        DELETE
    • Products
      • Get all products
      • Get a single product
      • Search product
      • Limit and skip product
      • Sort products
      • Get all products categories
      • Get products category list
      • Get products by a category
      • Add a new product
      • Update a product
      • Delete a product
    • Posts
      • Get all post
      • Get a single post
      • Search posts
      • Limit and skip posts
      • Sort posts
      • Get all posts tags
      • Get posts tag list
      • Get posts by a tag
      • Get all post by user id
      • Get post's comments
      • Add a new post
      • Update a post
      • Delete a post
  1. Users

Update a user

PUT
/users/1
Last modified:2025-05-19 14:42:07
Maintainer:ekovegeance

Request

Body Params text/plain
Example
Example:{ "lastName": "Vegeance", }

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://dummyjson.com/users/1' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "lastName": "Vegeance",
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-19 14:42:07
Previous
Add a new user
Next
Delete a user
Built with