{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postking-app/json-schema/postking-app-blog-patch-body-schema.json",
  "title": "BlogPatchBody",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postking-app-openapi.json#/components/schemas/BlogPatchBody",
  "type": "object",
  "properties": {
    "humanize": {
      "type": "boolean",
      "description": "Run the anti-slop humanization pass (dash normalization, banned-phrase replacement, and the de-slop critic) over the supplied content before saving."
    },
    "postTitle": {
      "type": "string"
    },
    "postDescription": {
      "type": "string"
    },
    "postText": {
      "type": "string"
    },
    "postExcerpt": {
      "type": "string"
    },
    "postMetaTitle": {
      "type": "string"
    },
    "postMetaDescription": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "scheduled"
      ]
    },
    "scheduledAt": {
      "type": "string",
      "format": "date-time"
    },
    "postImage": {
      "type": "string"
    },
    "postImageDesc": {
      "type": "string"
    },
    "postImageAlt": {
      "type": "string"
    },
    "categoryId": {
      "type": "string"
    },
    "authorId": {
      "type": "string"
    },
    "postFeatured": {
      "type": "boolean"
    },
    "postUrl": {
      "type": "string"
    },
    "updateReferences": {
      "type": "boolean"
    },
    "sidePageInfo": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "header": {
          "type": "string"
        },
        "ctaText": {
          "type": "string"
        },
        "ctaButtonText": {
          "type": "string"
        },
        "ctaHref": {
          "type": "string"
        },
        "ctaSource": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "cta": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Set to false to clear/disable the CTA (equivalent to sidePageInfo: null)."
        },
        "url": {
          "type": "string",
          "description": "Maps to sidePageInfo.ctaHref. Required when enabling a CTA."
        },
        "label": {
          "type": "string",
          "description": "Maps to sidePageInfo.ctaButtonText."
        },
        "headline": {
          "type": "string",
          "description": "Maps to sidePageInfo.header."
        },
        "body": {
          "type": "string",
          "description": "Maps to sidePageInfo.ctaText."
        }
      },
      "additionalProperties": false
    },
    "ctas": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Client-generatable, cuid-ish. Stable identity across edits/reorders."
          },
          "anchor": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "after_h2"
                    ]
                  },
                  "index": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "type",
                  "index"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "end"
                    ]
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              }
            ]
          },
          "sidePageId": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "ctaHref": {
            "type": "string"
          },
          "header": {
            "type": "string"
          },
          "ctaText": {
            "type": "string"
          },
          "ctaButtonText": {
            "type": "string"
          },
          "ctaSource": {
            "type": "string",
            "enum": [
              "generated",
              "side-page-match",
              "agent-edit",
              "user-edit",
              "pool"
            ]
          },
          "destinationId": {
            "type": "string",
            "description": "Set when the CTA was drawn from the publication's manual CTA link pool (Blog.ctaDestinations) — the CtaDestination.id it came from. Drives least-recently-used rotation across the publication's articles; preserve it when patching a pool CTA you didn't retarget."
          },
          "style": {
            "type": "string",
            "enum": [
              "strong",
              "light"
            ],
            "description": "Visual treatment. Absent defaults to \"strong\" (the card treatment)."
          }
        },
        "required": [
          "id",
          "anchor",
          "ctaHref",
          "header",
          "ctaText",
          "ctaButtonText",
          "ctaSource"
        ],
        "additionalProperties": false
      }
    },
    "authorityLinkPlacement": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "inline",
        "footer",
        null
      ],
      "description": "Per-article override of authority-link placement. One of: inline, footer. null inherits the brand-level default (brandSettings.authorityLinkPlacement, itself defaulting to \"footer\")."
    },
    "publicationId": {
      "type": "string",
      "description": "Moves this article to a DIFFERENT Blog publication of the same brand. Call list_publications (or list_blogs) first to see the brand's publications — id, title, languageCode, publicUrl — and pass the target's id here; omit this field entirely to leave the article on its current publication. A move can change both the article's language (BlogArticle has none of its own — it inherits the publication's) and its public URL. Errors: a publicationId belonging to a different brand returns 404; moving into a publication that already has an article at this article's slug returns 409 — change the slug first or resolve the collision."
    }
  },
  "additionalProperties": false
}