{
  "openapi": "3.0.1",
  "info": {
    "title": "Project Scheduler: Gantt Chart, Critical Path & Leveling",
    "description": "Turn a task list into a dated schedule: dependencies with lags, working calendars with public holidays, critical path and float, resource leveling, finish-date odds, costs. Gantt chart PNG/PDF, Excel, MS Project XML, CSV, iCal, Mermaid. Text, JSON or CSV. For AI agents.",
    "version": "0.1",
    "x-build-id": "q90LJFBtONOxxA9YT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~project-scheduler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-project-scheduler",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jumblemog~project-scheduler/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-project-scheduler",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jumblemog~project-scheduler/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-project-scheduler",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "title": "Project name",
            "type": "string",
            "description": "Shown on the Gantt chart and in the file names."
          },
          "tasks": {
            "title": "Tasks",
            "type": "array",
            "description": "One task per line: 'Name: duration; links; people'. Durations: 5d, 4h, 2w, 1mo, 3-5d (a range: plans on the middle, simulates the spread), 3/5/10d (best/likely/worst) or milestone. Links: 'after A, B', 'after A +2d' (lag), 'starts with A', 'finishes with A', 'SS A', '3FS+1d' (task 3). People: 'by Dana', 'needs 2 developers', 'uses crane'. Dates: 'not before 2026-11-09', 'deadline 2026-12-04'. Costs: '$500'. Headings ('## Build' or 'Build:') group tasks into phases; 'after Build' waits for the phase's last tasks. JSON objects work too.",
            "items": {
              "type": "string"
            }
          },
          "tasksCsv": {
            "title": "Task table (CSV, JSON, Excel or Google Sheets link)",
            "type": "string",
            "description": "Instead of or as well as the lines above: a table pasted as CSV/TSV/JSON, or a link to a CSV, JSON or Excel file or a public Google Sheet. Columns (any order, common names understood): ID, Task, Duration, Predecessors ('2FS+3d, 4SS' or task names), Resources ('Dana, Developer[200%]'), Optimistic/Likely/Pessimistic, Start no earlier than, Deadline, Phase, Milestone, Cost, Notes. Exports from MS Project, Smartsheet, Asana or Jira work after renaming columns if needed."
          },
          "resources": {
            "title": "Resources (people, teams, equipment)",
            "type": "array",
            "description": "One per line: 'Name', 'Developers: 3' (a team of 3), '$95/h' or '$600/day' rates, and 'off 2026-12-21 to 2026-12-31' days off. People named on tasks but not listed are assumed to be one person (or as many as one task needs).",
            "items": {
              "type": "string"
            }
          },
          "resourcesCsv": {
            "title": "Resource table (CSV, JSON or link)",
            "type": "string",
            "description": "A resource table: Name, Capacity (team size), Rate (per hour), Days off."
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "The project's first day (YYYY-MM-DD). It moves to the next working day if needed. Empty: the first working day after today."
          },
          "workDays": {
            "title": "Working days",
            "type": "string",
            "description": "Mon-Fri, Sun-Thu, Mon-Sat, 'Mon, Tue, Thu' or every day.",
            "default": "Mon-Fri"
          },
          "hoursPerDay": {
            "title": "Hours per working day",
            "minimum": 0.5,
            "maximum": 24,
            "type": "number",
            "description": "How many hours a day count as one day of work (1d = this many hours).",
            "default": 8
          },
          "dayStarts": {
            "title": "Working day starts at",
            "type": "string",
            "description": "The time of day work starts, for start and finish times.",
            "default": "09:00"
          },
          "holidays": {
            "title": "Holidays and closures",
            "type": "array",
            "description": "Country codes for public holidays (US, GB, CA, AU, DE, FR, IN and 100 more; regions like US-CA, GB-SCT, DE-BY), dates (2026-12-24), ranges (2026-12-24 to 2027-01-01) and named days ('Company offsite: 2026-11-20').",
            "items": {
              "type": "string"
            }
          },
          "deadline": {
            "title": "Deadline",
            "type": "string",
            "description": "The date the project must finish by (YYYY-MM-DD). The result says whether it's met, by how many working days, and the chance of meeting it when tasks have ranges."
          },
          "leveling": {
            "title": "Resource leveling",
            "enum": [
              "auto",
              "off"
            ],
            "type": "string",
            "description": "Auto levels only when someone is overbooked, with OR-Tools CP-SAT: the earliest finish date first, then every task as early as it can go.",
            "default": "auto"
          },
          "uncertaintyPercent": {
            "title": "Uncertainty for tasks without a range (%)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Gives every task without its own range one: best case this much shorter, worst case twice this much longer (tasks overrun more often than they finish early). 0: only tasks with ranges vary.",
            "default": 0
          },
          "simulations": {
            "title": "Monte Carlo runs",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "How many simulated runs give the finish-date odds (P50, P80, P90, P95) and each task's chance of being critical, when tasks have ranges. 0 turns the simulation off.",
            "default": 2000
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "A currency code for costs (USD, EUR, GBP). Empty: taken from the rates, such as $ or €."
          },
          "timeLimitSeconds": {
            "title": "Time limit for leveling (seconds)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "How long the leveling may search. Projects with a few hundred tasks level in seconds; leveling past 30 seconds is billed per started 10 seconds.",
            "default": 10
          },
          "jobs": {
            "title": "Several projects",
            "type": "array",
            "description": "Schedule several projects in one run: a list of objects with their own tasks, resources or settings (any field above); fields not given come from above: [{\"title\": \"Office move\", \"tasks\": [...]}, {\"title\": \"Audit\", \"tasks\": [...], \"deadline\": \"2026-12-11\"}]."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}