{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xplanner-co/json-schema/xplanner-co-post-posts-request-schema.json",
  "title": "PostPostsRequest",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/xplanner-co-openapi-generated.yml#/components/schemas/PostPostsRequest",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "socialSetId": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "description": "draft, scheduled, or publish_now"
    },
    "scheduledAt": {
      "type": "string",
      "description": "UTC ISO‑8601 timestamp, required when mode is scheduled"
    },
    "text": {
      "type": "string"
    },
    "publishTargets": {
      "type": "array",
      "description": "List of target objects with socialAccountId and platform"
    }
  },
  "required": [
    "workspaceId",
    "socialSetId",
    "mode"
  ]
}