{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spoofy-social/json-schema/spoofy-social-automation-settings-change-schema.json",
  "title": "AutomationSettingsChange",
  "description": "A new-post automation's settings to change (kind `feed`, active or paused): send any of them. They apply to the posts found from now on; parts already planned for a post keep their plan. Each order is charged the price on sale when it goes. When the new settings can cost more than its limit, send `confirm_budget: true` to raise the limit to what they can cost — or a `budget` of your own; a limit you set yourself below what the plan could cost stays as it is.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spoofy-social-openapi.json#/components/schemas/AutomationSettingsChange",
  "type": "object",
  "properties": {
    "quantity": {
      "type": "integer",
      "description": "One amount for each post (both ends of the range)."
    },
    "quantity_min": {
      "type": "integer",
      "description": "feed: with quantity_max, a range instead of one amount — each new post gets a random whole number in it, both ends within one delivery of the service (drawn per post: the same post always draws the same)."
    },
    "quantity_max": {
      "type": "integer",
      "description": "feed: the range's top. What the plan can cost counts each post at it."
    },
    "spread_minutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 360,
      "description": "feed: spread each post's order over this many minutes, 30 to 360 (0, the default: all at once) — in `parts` orders at random times within the window, the first at the start."
    },
    "parts": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "description": "feed, with spread_minutes: how many parts (2–10, default 3). Each part is at least the service's minimum, so a small amount goes in fewer, down to one. The parts of one post are one post toward posts and max_per_day."
    },
    "delay_min_minutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1440,
      "description": "feed: the first part starts a random number of minutes after the post appears, from this…"
    },
    "delay_max_minutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1440,
      "description": "feed: …to this."
    },
    "pace": {
      "type": "string",
      "enum": [
        "even",
        "steady",
        "front",
        "launch"
      ],
      "description": "With parts: their curve — even (the default), steady, front, or launch (added 2026-10-28: the first part about half, each after it smaller)."
    },
    "delay_minutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1440,
      "description": "One wait after each post (both ends of the delay range)."
    },
    "posts": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "description": "Your next N posts: at least the posts it has already ordered or has on their way."
    },
    "max_per_day": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "At most this many posts a day."
    },
    "budget": {
      "type": [
        "string",
        "number",
        "null"
      ],
      "description": "The most it may spend in all, USD; at least what it has spent and holds, the parts already planned and one more post. null: no limit of your own — the most these settings can cost."
    },
    "confirm_budget": {
      "type": "boolean",
      "description": "Yes, raise the limit to the most these settings can cost (`change.budget.after` of a dry run)."
    },
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Say what the change would do — with nothing else, what the plan does now — and change nothing."
    }
  }
}