Update a category

Updates a category's name, slug, description, parent, or schema. Moving a category to a different parent re-organizes the tree.

Required permissions
categories.update
PUT/categories/{id}
Base URLhttps://api.lynkow.com/v1

Path parameters

id
string
required

Unique identifier

Request body
required

  • name
    string

    Display name. 1-255 characters

  • slug
    string

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

  • image
    union

    Image URL

  • 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?