curl --location --request PUT 'https://www.pacekb.com/api/v2/articles' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
    "title": "How to create an article in PaceKB",
    "slug": "how-to-create-an-article-in-pacekb",
    "categories": [
        {
            "value": "<id>"
        }
    ],
    "tags": [
        {
            "value": "<id>"
        }
    ],
    "excerpt": "Find out how to create an article in PaceKB!",
    "ordering": 0,
    "status": "published",
    "content": "<h1>Getting Started</h1><p>This is how you can create an article in PaceKB...</p>",
    "hideFromSearch": false,
    "seoBannerUrl": "https://www.pacekb.com/seoBanner.png",
    "articleReviewDate": "2023-06-05T20:42:23.805Z"
}'
{
  "success": true,
  "message": "How to create an article in PaceKB has been created"
}

Body

title
string
required
Title of article
slug
string
required
Slug of article
categories
array
required
Array of all category objects
tags
array
Array of all tags objects
excerpt
string
required
Excerpt of article (Max 160 characters)
ordering
number
required
Order priority of article
status
string
required
Status of article: draft or published
content
string
required
Article content (HTML accepted)
Hide article from search
seoBannerUrl
string
URL of SEO banner image
articleReviewDate
date
Date of next review of article

Response

success
boolean
Indicates whether the call was successful.
message
string
Success/error message
curl --location --request PUT 'https://www.pacekb.com/api/v2/articles' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
    "title": "How to create an article in PaceKB",
    "slug": "how-to-create-an-article-in-pacekb",
    "categories": [
        {
            "value": "<id>"
        }
    ],
    "tags": [
        {
            "value": "<id>"
        }
    ],
    "excerpt": "Find out how to create an article in PaceKB!",
    "ordering": 0,
    "status": "published",
    "content": "<h1>Getting Started</h1><p>This is how you can create an article in PaceKB...</p>",
    "hideFromSearch": false,
    "seoBannerUrl": "https://www.pacekb.com/seoBanner.png",
    "articleReviewDate": "2023-06-05T20:42:23.805Z"
}'
{
  "success": true,
  "message": "How to create an article in PaceKB has been created"
}