PUT
/posts/{id}
curl \
-X PUT https://api.example.com/v1/posts/{id} \
-H "Content-Type: application/json" \
-d '{"userId":1,"id":1,"title":"The First Post","body":"we are building a blog post API using OpenAPI Specification."}'
Request example
{
"userId": 1,
"id": 1,
"title": "The First Post",
"body": "we are building a blog post API using OpenAPI Specification."
}
Request examples
{
"id": 1,
"body": "we are building a blog post API using OpenAPI Specification.",
"title": "The First Post",
"userId": 1
}