{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpost-to/json-schema/xpost-to-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/xpost-to-openapi-generated.yml#/components/schemas/PostPostsRequest",
  "type": "object",
  "properties": {
    "caption": {
      "type": "string",
      "description": "Required for every destination that prints one — omit it only on a story‑only post"
    },
    "social_accounts": {
      "type": "array",
      "description": "Where it posts: an account id, `platform:username`, or a bare username"
    },
    "media_ids": {
      "type": "array",
      "description": "From POST /media; order = carousel order, first item leads"
    },
    "upload_ticket": {
      "type": "string",
      "description": "Ticket from POST /media/ticket that files have been posted to"
    },
    "media_pending": {
      "type": "boolean",
      "description": "The picture is still to come"
    },
    "scheduled_at": {
      "type": "string",
      "description": "ISO‑8601 with Z or offset; or `next_slot`"
    },
    "is_draft": {
      "type": "boolean",
      "description": "Create as draft"
    },
    "platform_configurations": {
      "type": "object",
      "description": "Per‑platform options"
    },
    "idempotency_key": {
      "type": "string",
      "description": "Your own identifier for this post"
    }
  },
  "required": [
    "social_accounts"
  ]
}