{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schedulin-app/json-schema/schedulin-app-post-create-schema.json",
  "title": "PostCreate",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schedulin-app-openapi.json#/components/schemas/PostCreate",
  "type": "object",
  "properties": {
    "caption": {
      "type": "string",
      "maxLength": 100000
    },
    "title": {
      "type": "string",
      "maxLength": 100
    },
    "scheduledAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "x-native-type": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "socialAccountId": {
      "type": "string"
    },
    "media": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "thumbnail_timestamp_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "type": {
                  "enum": [
                    "user",
                    "business"
                  ],
                  "type": "string"
                },
                "platform": {
                  "enum": [
                    "bluesky",
                    "facebook",
                    "google_business_profile",
                    "instagram",
                    "linkedin",
                    "pinterest",
                    "reddit",
                    "snapchat",
                    "threads",
                    "tiktok",
                    "tiktok_business",
                    "twitter",
                    "youtube",
                    "mastodon",
                    "telegram",
                    "devto",
                    "hashnode",
                    "medium",
                    "wordpress",
                    "lemmy",
                    "nostr",
                    "discord",
                    "dribbble",
                    "farcaster",
                    "kick",
                    "listmonk",
                    "mewe",
                    "moltbook",
                    "skool",
                    "slack",
                    "twitch",
                    "vk",
                    "whop"
                  ],
                  "type": "string"
                },
                "x": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "y": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              },
              "required": [
                "id",
                "type",
                "platform"
              ]
            }
          },
          "alt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "skip_processing": {
            "type": "boolean",
            "default": false,
            "description": "Publish this file exactly as uploaded: no conversion, remux or re-encode before publishing. Use only for files you know the platform accepts (e.g. a web-ready H.264/AAC MP4 or a JPEG/PNG); an unsupported format will be rejected by the platform at publish."
          },
          "name": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "width": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "size": {
            "type": "number"
          },
          "duration": {
            "type": "number",
            "minimum": 0
          },
          "caption": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "This photo's own caption in this post. Facebook photo posts show it when the photo is opened; Pinterest carousel Pins show it on that slide (up to 800 characters); Reddit galleries show it under that image (up to 180). Other platforms ignore it."
          }
        },
        "required": [
          "url"
        ]
      },
      "default": []
    },
    "thumbnail": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "thumbnail_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "thumbnail_timestamp_ms": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "type": {
                "enum": [
                  "user",
                  "business"
                ],
                "type": "string"
              },
              "platform": {
                "enum": [
                  "bluesky",
                  "facebook",
                  "google_business_profile",
                  "instagram",
                  "linkedin",
                  "pinterest",
                  "reddit",
                  "snapchat",
                  "threads",
                  "tiktok",
                  "tiktok_business",
                  "twitter",
                  "youtube",
                  "mastodon",
                  "telegram",
                  "devto",
                  "hashnode",
                  "medium",
                  "wordpress",
                  "lemmy",
                  "nostr",
                  "discord",
                  "dribbble",
                  "farcaster",
                  "kick",
                  "listmonk",
                  "mewe",
                  "moltbook",
                  "skool",
                  "slack",
                  "twitch",
                  "vk",
                  "whop"
                ],
                "type": "string"
              },
              "x": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "y": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "id",
              "type",
              "platform"
            ]
          }
        },
        "alt": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 1000
            },
            {
              "type": "null"
            }
          ]
        },
        "skip_processing": {
          "type": "boolean",
          "default": false,
          "description": "Publish this file exactly as uploaded: no conversion, remux or re-encode before publishing. Use only for files you know the platform accepts (e.g. a web-ready H.264/AAC MP4 or a JPEG/PNG); an unsupported format will be rejected by the platform at publish."
        },
        "name": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "width": {
          "type": "number"
        },
        "height": {
          "type": "number"
        },
        "size": {
          "type": "number"
        },
        "duration": {
          "type": "number",
          "minimum": 0
        },
        "caption": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "null"
            }
          ],
          "description": "This photo's own caption in this post. Facebook photo posts show it when the photo is opened; Pinterest carousel Pins show it on that slide (up to 800 characters); Reddit galleries show it under that image (up to 180). Other platforms ignore it."
        }
      },
      "required": [
        "url"
      ]
    },
    "platformConfiguration": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "tagIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "action": {
      "enum": [
        "schedule",
        "queue",
        "draft",
        "now"
      ],
      "type": "string"
    },
    "parts": {
      "type": "array",
      "minItems": 1,
      "maxItems": 25,
      "items": {
        "type": "object",
        "properties": {
          "caption": {
            "type": "string",
            "minLength": 1,
            "maxLength": 25000
          },
          "media": {
            "type": "array",
            "maxItems": 4,
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "thumbnail_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "thumbnail_timestamp_ms": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "user",
                          "business"
                        ],
                        "type": "string"
                      },
                      "platform": {
                        "enum": [
                          "bluesky",
                          "facebook",
                          "google_business_profile",
                          "instagram",
                          "linkedin",
                          "pinterest",
                          "reddit",
                          "snapchat",
                          "threads",
                          "tiktok",
                          "tiktok_business",
                          "twitter",
                          "youtube",
                          "mastodon",
                          "telegram",
                          "devto",
                          "hashnode",
                          "medium",
                          "wordpress",
                          "lemmy",
                          "nostr",
                          "discord",
                          "dribbble",
                          "farcaster",
                          "kick",
                          "listmonk",
                          "mewe",
                          "moltbook",
                          "skool",
                          "slack",
                          "twitch",
                          "vk",
                          "whop"
                        ],
                        "type": "string"
                      },
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "platform"
                    ]
                  }
                },
                "alt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "skip_processing": {
                  "type": "boolean",
                  "default": false,
                  "description": "Publish this file exactly as uploaded: no conversion, remux or re-encode before publishing. Use only for files you know the platform accepts (e.g. a web-ready H.264/AAC MP4 or a JPEG/PNG); an unsupported format will be rejected by the platform at publish."
                },
                "name": {
                  "type": "string"
                },
                "mimeType": {
                  "type": "string"
                },
                "width": {
                  "type": "number"
                },
                "height": {
                  "type": "number"
                },
                "size": {
                  "type": "number"
                },
                "duration": {
                  "type": "number",
                  "minimum": 0
                },
                "caption": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2000
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "This photo's own caption in this post. Facebook photo posts show it when the photo is opened; Pinterest carousel Pins show it on that slide (up to 800 characters); Reddit galleries show it under that image (up to 180). Other platforms ignore it."
                }
              },
              "required": [
                "url"
              ]
            }
          }
        },
        "required": [
          "caption"
        ]
      }
    }
  },
  "required": [
    "caption",
    "socialAccountId"
  ]
}