{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendley-com/json-schema/rendley-com-social-create-post-dto-schema.json",
  "title": "social.CreatePostDTO",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendley-com-openapi.json#/components/schemas/social.CreatePostDTO",
  "properties": {
    "account_ids": {
      "description": "Ids from GET /social/accounts.",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "caption": {
      "description": "Checked against each target platform's limit, e.g. 280 characters on X.",
      "maxLength": 5000,
      "type": "string"
    },
    "captions": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Per-platform caption keyed by platform, e.g. {\"x\": \"...\"}; overrides caption for that platform.",
      "type": "object"
    },
    "cover_url": {
      "description": "Public HTTPS link to a jpeg/png/webp image used as the video's thumbnail on YouTube, Instagram, Facebook and Pinterest; other platforms pick their own.",
      "maxLength": 4096,
      "type": "string"
    },
    "media_url": {
      "description": "Public HTTPS link to an mp4/mov video or a jpeg/png/webp/gif image, e.g. an export URL.",
      "maxLength": 4096,
      "type": "string"
    },
    "platform_options": {
      "allOf": [
        {
          "$ref": "#/$defs/social.PlatformOptions"
        }
      ],
      "description": "Settings only some platforms use."
    },
    "project_id": {
      "description": "The Rendley project the video comes from, shown with the post in the app.",
      "type": "string"
    },
    "scheduled_at": {
      "description": "RFC 3339 time to publish at; omit to publish now.",
      "type": "string"
    },
    "thumbnail_url": {
      "description": "Preview image the app shows with the post; not sent to the platforms.",
      "maxLength": 2048,
      "type": "string"
    },
    "workspace_id": {
      "type": "string"
    }
  },
  "required": [
    "account_ids",
    "media_url",
    "workspace_id"
  ],
  "type": "object",
  "$defs": {
    "social.InstagramOptions": {
      "properties": {
        "placement": {
          "description": "reels (default), timeline (feed) or stories.",
          "enum": [
            "reels",
            "timeline",
            "stories"
          ],
          "type": "string"
        },
        "share_to_feed": {
          "description": "A reel also shows in the feed, not only in the Reels tab.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "social.PlatformOptions": {
      "properties": {
        "instagram": {
          "$ref": "#/$defs/social.InstagramOptions"
        },
        "tiktok": {
          "$ref": "#/$defs/social.TiktokOptions"
        },
        "youtube": {
          "allOf": [
            {
              "$ref": "#/$defs/social.YoutubeOptions"
            }
          ],
          "description": "Used for YouTube accounts; the caption becomes the video description."
        }
      },
      "type": "object"
    },
    "social.TiktokOptions": {
      "properties": {
        "allow_comment": {
          "type": "boolean"
        },
        "allow_duet": {
          "type": "boolean"
        },
        "allow_stitch": {
          "type": "boolean"
        },
        "is_ai_generated": {
          "type": "boolean"
        },
        "privacy_status": {
          "description": "public (default) or private.",
          "enum": [
            "public",
            "private"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "social.YoutubeOptions": {
      "properties": {
        "made_for_kids": {
          "type": "boolean"
        },
        "privacy_status": {
          "description": "public (default), unlisted or private.",
          "enum": [
            "public",
            "unlisted",
            "private"
          ],
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "maxItems": 30,
          "type": "array"
        },
        "title": {
          "description": "Video title; defaults to the caption, so it is required when the caption is longer than 100 characters.",
          "maxLength": 100,
          "type": "string"
        }
      },
      "required": [
        "tags"
      ],
      "type": "object"
    }
  }
}