OpenAPI specification: http://localhost:3040/openapi.yaml
Posts
Create a post
Create a new post. The response echoes your body with a new id.
POST
https://jsonplaceholder.typicode.com/postsServers
https://jsonplaceholder.typicode.com
Live public API
Request body
application/jsonRequired
userIdbodyintegerrequiredtitlebodystringrequiredbodybodystringrequiredResponses
The created post.
idintegerrequireduserIdintegerrequiredThe author's user ID.
titlestringrequiredbodystringrequiredRequestcURL
curl --request POST \
--url 'https://jsonplaceholder.typicode.com/posts'
--data '{
"userId": 1,
"title": "My first post",
"body": "Hello from the Try It console."
}'Response
Send a request to preview the response.
Was this page helpful?