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 bodyrequired

  • namestringrequired

    Required. Display name. 1-255 characters

  • slugstringrequired

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

  • imageunion

    Image URL

  • localestring

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

  • schemaobject

    Field schema definition

    • fieldsarray<any>required
  • parentIdunion

    Parent resource ID

  • contentModeenum

    One of: standard, structured

    One of: standardstructured

  • descriptionunion

    Description text

  • jsonLdGrapharray<object>

    Max 50 characters. Array of objects

    • idstring
    • dataanyrequired
    • typestringrequired
    • sourceenum

      One of: presetcustom

  • displayOrdernumber

    Number

  • schemaSourceenum

    One of: own, inherit

    One of: owninherit

  • sitemapPriorityunion

    Sitemap priority (0.0-1.0)

  • jsonLdExclusionsarray<string>

    Max 50 characters. Array of strings

  • sitemapChangefrequnion

    Sitemap change frequency (daily, weekly, monthly)

Feedback

Was this page helpful?