Changelog

OpenAPI specification: http://localhost:3040/openapi.yaml

Posts

Update a post

Partially update a post — send only the fields you want to change.

PATCHhttps://jsonplaceholder.typicode.com/posts/{id}

Servers

https://jsonplaceholder.typicode.com

Live public API

Parameters

Path parameters

idpathintegerrequired
The post ID.

Request body

application/jsonRequired
userIdbodyintegerrequired
titlebodystringrequired
bodybodystringrequired

Responses

The updated post.

idintegerrequired
userIdintegerrequired
The author's user ID.
titlestringrequired
bodystringrequired
RequestcURL
curl --request PATCH \
  --url 'https://jsonplaceholder.typicode.com/posts/1'
  --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?