OpenAPI specification: http://localhost:3040/openapi.yaml
Posts
Update a post
Partially update a post — send only the fields you want to change.
PATCH
https://jsonplaceholder.typicode.com/posts/{id}Servers
https://jsonplaceholder.typicode.com
Live public API
Parameters
Path parameters
idpathintegerrequiredThe post ID.
Request body
application/jsonRequired
userIdbodyintegerrequiredtitlebodystringrequiredbodybodystringrequiredResponses
The updated post.
idintegerrequireduserIdintegerrequiredThe author's user ID.
titlestringrequiredbodystringrequiredRequestcURL
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?