Update a post

PATCH /posts/{id}

Update the post with id partially.

Path parameters

  • id string Required

    The postId requested by user.

Body Required

  • id string

    The post id.

  • userId string

    The post userId.

  • title string

    The title of the post

  • body string

    The body content of the post

Responses

  • 200

    Updated the post partially.

PATCH /posts/{id}
curl \
 -X PATCH https://api.example.com/v1/posts/{id} \
 -H "Content-Type: application/json" \
 -d '{"id":"string","userId":"string","title":"string","body":"string"}'
Request example
{
  "id": "string",
  "userId": "string",
  "title": "string",
  "body": "string"
}
Request examples
{
  "id": "string",
  "userId": "string",
  "title": "string",
  "body": "string"
}