{
 "openapi": "3.1.0",
 "info": {
  "title": "Batch Console (Platform)",
  "version": "20261030b",
  "description": "The job library for every module, with a rehearsal that shows which records a job would touch before it touches them."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/platform/batch/jobs/{id}/run": {
   "post": {
    "summary": "Jobs run",
    "operationId": "action_batch_0_7",
    "description": "Body keys: dryRun, parameters, schedule, background",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/cadences": {
   "get": {
    "summary": "Cadences",
    "operationId": "action_batch_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/schedules": {
   "get": {
    "summary": "Schedules",
    "operationId": "action_batch_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Schedules",
    "operationId": "action_batch_1_5",
    "description": "Body keys: jobId, dryRun, parameters, schedule, origin, originRef",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/schedules/{id}": {
   "patch": {
    "summary": "Schedules",
    "operationId": "action_batch_0_6",
    "description": "Body keys: cadence, runAt, run_at, dayOfWeek, day_of_week, dayOfMonth, day_of_month, timeZone, time_zone, startsAt, starts_at; cadence one of once|every_15_min|hourly|daily|weekly|monthly|quarterly|annually|period_end|on_demand",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Schedules",
    "operationId": "action_batch_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/schedules/{id}/run-now": {
   "post": {
    "summary": "Schedules run now",
    "operationId": "action_batch_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/runs/{id}/items": {
   "get": {
    "summary": "Runs items",
    "operationId": "action_batch_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/sets/{id}/run": {
   "post": {
    "summary": "Sets run",
    "operationId": "action_batch_0_7",
    "description": "Body keys: dryRun, parameters",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/set-runs/{id}": {
   "get": {
    "summary": "Set runs",
    "operationId": "action_batch_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch/catalogue": {
   "get": {
    "summary": "Catalogue",
    "operationId": "action_batch_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}