static-content

Create static content

Create new static content with HTML formatting support

post/static-content

Request body

titlestring required

Content title

slugstring

URL-friendly slug (auto-generated from title if not provided)

descriptionstring required

Content description/summary

categorystring required

Content category

contentstring required

HTML formatted content (supports text, tables, links, formatting)

languageType'BM' | 'EN'

Language type

is_publishedboolean

Publish status

authorstring

Author name

metadataobject

Additional metadata (SEO, tags, etc.)

Example request

{
  "title": "Terms and Conditions",
  "slug": "terms-and-conditions",
  "description": "Our terms and conditions for using the service",
  "category": "Legal",
  "content": "<h1>Terms</h1><p>Welcome to our service...</p><table><tr><td>Item</td></tr></table>",
  "author": "Admin User",
  "metadata": {
    "seo_title": "Terms",
    "keywords": [
      "legal",
      "terms"
    ]
  }
}

Response

Content created successfully

content_idnumber required

Content ID

titlestring required

Title

slugstring required

URL slug

descriptionstring required

Description

categorystring required

Category

contentstring required

HTML content

languageTypestring required

Language

is_publishedboolean required

Published status

published_atstring date-time

Published date

authorstring

Author

metadataobject

Metadata

view_countnumber required

View count

created_atstring date-time required

Created date

updated_atstring date-time required

Last updated date

Example response

{
  "content_id": 1,
  "title": "Terms and Conditions",
  "slug": "terms-and-conditions",
  "description": "Our terms of service",
  "category": "Legal",
  "content": "<h1>Terms</h1><p>Content...</p>",
  "languageType": "EN",
  "is_published": true,
  "published_at": "2025-11-01T10:00:00Z",
  "author": "Admin",
  "view_count": 150,
  "created_at": "2025-11-01T10:00:00Z",
  "updated_at": "2025-11-01T12:00:00Z"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.