Get started now
PATCH

updatePostById

https://yourdomain.com/api/v1/post/update/:postId

Headers

KeyValueDescription
AuthorizationBearer {{AuthToken}}Authorization token
Content-Typeapplication/json

Body

FieldsTypeDescriptionRequired
titleStringTitle of the posttrue
bodyMarkdownStringDescription of the posttrue

Params

FieldsTypeDescriptionRequired
postIdStringPost IDtrue

Example

https://yourdomain.com/api/v1/post/update/1
{
  "title": "New title",
  "description": "Update description"
}

Response

FieldsTypeDescription
status.codeIntegerResponse code from server
status.typeStringResponse status type (success/fail)
postsObjectPost data

You can see post data object in createPost.

Example

{
  "status": {
    "code": 200,
    "type": "success"
  },
  "post": {
    // post data oboject
  }
}