Create a category

Creates a new category. Set `parentId` to create it as a child of an existing category. The slug is auto-generated from the name if not provided.

Required permissions
categories.create
POST/categories
Base URLhttps://api.lynkow.com/v1

Request body
required

  • name
    string
    required

    Required. Display name. 1-255 characters

  • slug
    string
    required

    Required. URL-friendly identifier, unique per site and locale. 1-255 characters

  • image
    union

    Image URL

  • locale
    string

    BCP 47 locale code (e.g. "en", "fr")

  • schema
    object

    Field schema definition

    • fields
      array<any>
      required
  • parentId
    union

    Parent resource ID

  • contentMode
    enum

    One of: standard, structured

    One of: standardstructured

  • description
    union

    Description text

  • jsonLdGraph
    array<object>

    Max 50 characters. Array of objects

    • id
      string
    • data
      any
      required
    • type
      string
      required
    • source
      enum

      One of: presetcustom

  • displayOrder
    number

    Number

  • schemaSource
    enum

    One of: own, inherit

    One of: owninherit

  • sitemapPriority
    union

    Sitemap priority (0.0-1.0)

  • jsonLdExclusions
    array<string>

    Max 50 characters. Array of strings

  • sitemapChangefreq
    union

    Sitemap change frequency (daily, weekly, monthly)

Feedback

Was this page helpful?