{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shortsync-app/json-schema/shortsync-app-repurposing-workflow-settings-schema.json",
  "title": "RepurposingWorkflowSettings",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shortsync-app-openapi.yml#/components/schemas/RepurposingWorkflowSettings",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80,
      "description": "Optional name. Null or empty shows the default label for the kind."
    },
    "target_connection_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Connections to repost to, not the source. Pinterest needs `target_options.pinterest`, Reddit `target_options.reddit`."
    },
    "publish_mode": {
      "type": "string",
      "enum": [
        "immediate",
        "draft"
      ],
      "description": "New-posts workflows. `immediate` publishes each repost right away; `draft` (default) saves it to the library."
    },
    "content_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "video",
          "image",
          "carousel"
        ]
      },
      "description": "Post types to repost. Default all three."
    },
    "caption_suffix": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "Text added to every repost's caption."
    },
    "target_options": {
      "type": "object",
      "properties": {
        "pinterest": {
          "type": "object",
          "required": [
            "board_id"
          ],
          "properties": {
            "board_id": {
              "type": "string"
            },
            "board_name": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "reddit": {
          "type": "object",
          "required": [
            "subreddit"
          ],
          "properties": {
            "subreddit": {
              "type": "string",
              "description": "Without the r/ prefix."
            }
          }
        },
        "discord": {
          "type": "object",
          "properties": {
            "channel_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "google_business": {
          "type": "object",
          "properties": {
            "location_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "caption_mode": {
          "type": "string",
          "enum": [
            "title_and_description",
            "split",
            "title"
          ],
          "description": "On YouTube, Pinterest, Reddit and Tumblr the title is the caption's first line. The description is the whole caption (title_and_description), the caption without its first line (split) or empty (title). Defaults to title when the member's saved upload setting is title only, else title_and_description. The older value description is still accepted and saved as title_and_description."
        },
        "settings": {
          "type": "object",
          "description": "Per-platform settings, keyed by platform, in the same camelCase\nshape the dashboard stores (e.g. `{ \"youtube\": { \"privacyStatus\":\n\"unlisted\", \"categoryId\": \"20\" }, \"tiktok\": { \"privacyLevel\":\n\"SELF_ONLY\" } }`). Anything unset uses the member's saved upload\nsettings. Per-post fields (titles, alt text, subtitles, polls)\nare ignored.\n",
          "additionalProperties": {
            "type": "object"
          }
        }
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "false pauses the workflow."
    },
    "schedule_slots": {
      "type": "object",
      "description": "Scheduled workflows. Keys \"0\" (Sunday) to \"6\" (Saturday); values are HH:mm times, up to 5 a day.",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^\\d{2}:\\d{2}$"
        }
      }
    },
    "timezone": {
      "type": "string",
      "description": "Scheduled workflows. IANA zone, e.g. Europe/Helsinki."
    },
    "include_from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Scheduled workflows. Only source posts published from this date."
    },
    "include_until": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Scheduled workflows. Only source posts published until this date."
    },
    "publish_order": {
      "type": "string",
      "enum": [
        "newest",
        "oldest",
        "most_viewed"
      ],
      "description": "Scheduled workflows. Default newest. most_viewed is Twitch only."
    }
  }
}