Create post

Create a new post

POST
/posts

Create a new post

Authorization

bearerAuth
headerAuthorizationBearer <token>

JWT Bearer token authentication

Request Body

Create post request body

application/json
  1. body
title*string

Title of the post.

contentMarkdown?string

Post content description in markdown format. NOTE: LogChimp does not support markdown in the content description. For now, we only have added contentMarkdown property in the OpenAPI specification.

boardId?string
roadmapId?string

Response Body

application/json
  1. response
post?
Example Request
curl -X POST 'http://localhost:8000/api/v1/posts' \  -H 'Content-Type: application/json' \  -d '{  "title": "string"}'
Example Response
{  "post": {    "postId": "string",    "title": "string",    "slug": "string",    "slugId": "string",    "contentMarkdown": "string",    "userId": "string",    "createdAt": "string",    "updatedAt": "string",    "boardId": "string",    "roadmap_id": "string"  }}