POST
/
posts
curl --request POST \
  --url https://jsonplaceholder.typicode.com/posts \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "foo",
    "body": "bar",
    "userId": "1",
  }'
{
  "title": "foo",
  "body": "bar",
  "userId": 1,
  "id": 101
}

Request Body Parameters

title
string
required
This is the title of the body
body
string
This is the body of the user
userid
integer
required
This is the id of the user

Response Body Parameters

title
string
This is the title of the body
body
string
This is the body of the user
userid
integer
This is the id of the user
curl --request POST \
  --url https://jsonplaceholder.typicode.com/posts \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "foo",
    "body": "bar",
    "userId": "1",
  }'
{
  "title": "foo",
  "body": "bar",
  "userId": 1,
  "id": 101
}