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

Add a new user

POST
/users/add
Last modified:2025-05-19 14:41:59
Maintainer:ekovegeance

Request

Body Params application/json
firstName
string 
required
lastName
string 
required
age
integer 
required
Example
{
    "firstName": "Eko",
    "lastName": "Johnson",
    "age": 28
}

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 POST 'https://dummyjson.com/users/add' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "Eko",
    "lastName": "Johnson",
    "age": 28
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-19 14:41:59
Previous
Get a single user
Next
Update a user
Built with