{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/epicdirectories/json-schema/epicdirectories-update-term-dto-schema.json",
  "title": "UpdateTermDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/epicdirectories-taxonomies-api-openapi.yml#/components/schemas/UpdateTermDto",
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "description": "Display label. Does NOT change the slug — the term is still addressed by its original slug."
    },
    "parentTermId": {
      "type": "object",
      "description": "Parent term ID for hierarchical taxonomies"
    },
    "metadata": {
      "type": "object",
      "description": "Free-form metadata. Conventional keys: synonyms, seoKeywords, relatedTopics, description, seoTitle, seoDescription, featured, order. **Full-replace on PATCH** — sending `{ metadata: { synonyms: [...] } }` wipes seoKeywords and every other key. Read-modify-write when partially updating: GET the term, spread its metadata, add your fields, send the merged object back."
    }
  }
}