{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seenpaid-com/json-schema/seenpaid-com-create-post-request-schema.json",
  "title": "CreatePostRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seenpaid-com-openapi.json#/components/schemas/CreatePostRequest",
  "type": "object",
  "required": [
    "socialAccountIds"
  ],
  "properties": {
    "caption": {
      "type": "string",
      "maxLength": 3000
    },
    "mediaIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 10,
      "default": []
    },
    "socialAccountIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "minItems": 1,
      "description": "Must not contain duplicates."
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time",
      "description": "Omit to publish immediately. Must be in the future."
    },
    "captions": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 3000
      },
      "description": "Optional per-account caption overrides, keyed by socialAccountId. Accounts not listed use the shared `caption`."
    }
  }
}