Skip to main content
POST
/
posts
Create a new post
curl --request POST \
  --url http://localhost:3001/portal-api/posts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "Content": "# Title\r\n## Subtitle\r\nContent goes here",
  "MarkdownEnabled": true,
  "Status": "published",
  "Title": "Get started this API Product",
  "Lede": "<string>",
  "Path": "<string>",
  "Categories": [
    "<string>"
  ],
  "Tags": [
    "<string>"
  ],
  "MarkdownContent": "<string>",
  "PreviewContent": "<string>"
}'
{
  "ID": "<string>",
  "Title": "<string>",
  "Lede": "<string>",
  "Content": "<string>",
  "Status": "<string>",
  "Path": "<string>",
  "Categories": [
    {
      "ID": "<string>",
      "Name": "<string>",
      "CreatedAt": "2023-06-25 13:37",
      "UpdatedAt": "2023-06-25 13:37"
    }
  ],
  "Tags": [
    {
      "ID": "<string>",
      "Name": "<string>",
      "CreatedAt": "2023-06-25 13:37",
      "UpdatedAt": "2023-06-25 13:37"
    }
  ],
  "MarkdownEnabled": true,
  "MarkdownContent": "<string>",
  "PreviewContent": "<string>",
  "CreatedAt": "2023-06-25 13:37",
  "UpdatedAt": "2023-06-25 13:37"
}

Authorizations

Authorization
string
header
required

Body

application/json
Content
string
Example:
MarkdownEnabled
boolean
Example:
Status
enum<string>
Available options:
published,
draft,
review
Example:
Title
string
Example:
Lede
string
Path
string
Categories
string[]
Tags
string[]
MarkdownContent
string
PreviewContent
string

Response

201 - application/json
ID
string
Title
string
Lede
string
Content
string
Status
string
Path
string
Categories
object[]
Tags
object[]
MarkdownEnabled
boolean
MarkdownContent
string
PreviewContent
string
CreatedAt
string
Example:
UpdatedAt
string
Example: