{
 "openapi": "3.1.0",
 "info": {
  "title": "Batch jobs (Platform)",
  "version": "20261030b",
  "description": "Read and maintain batch jobs records (batch.job_catalogue)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "batch-jobs": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "code": {
      "type": "string",
      "description": "Code",
      "readOnly": true
     },
     "name": {
      "type": "string",
      "description": "Name",
      "readOnly": true
     },
     "module": {
      "type": "string",
      "description": "Module",
      "readOnly": true
     },
     "category": {
      "type": "string",
      "description": "Category",
      "readOnly": true
     },
     "description": {
      "type": "string",
      "description": "Description",
      "readOnly": true
     },
     "selects": {
      "type": "string",
      "description": "Selects",
      "readOnly": true
     },
     "acts": {
      "type": "string",
      "description": "Acts",
      "readOnly": true
     },
     "handler": {
      "type": "string",
      "description": "Handler",
      "readOnly": true
     },
     "parameters": {
      "type": "object",
      "description": "Parameters",
      "readOnly": true
     },
     "supports_dry_run": {
      "type": "boolean",
      "description": "Supports dry run",
      "readOnly": true
     },
     "is_idempotent": {
      "type": "boolean",
      "description": "Is idempotent",
      "readOnly": true
     },
     "repeat_note": {
      "type": "string",
      "description": "Repeat note",
      "readOnly": true
     },
     "requires_role": {
      "type": "string",
      "description": "Requires role",
      "readOnly": true
     },
     "is_default": {
      "type": "boolean",
      "description": "Is default",
      "readOnly": true
     },
     "is_active": {
      "type": "boolean",
      "description": "Is active",
      "readOnly": true
     },
     "sort_order": {
      "type": "integer",
      "description": "Sort order",
      "readOnly": true
     },
     "runnable": {
      "type": "boolean",
      "description": "Runnable",
      "readOnly": true
     },
     "runs": {
      "type": "integer",
      "description": "Runs",
      "readOnly": true
     },
     "last_run": {
      "type": "string",
      "format": "date-time",
      "description": "Last run",
      "readOnly": true
     },
     "last_status": {
      "type": "string",
      "description": "Last status",
      "readOnly": true
     },
     "schedules": {
      "type": "integer",
      "description": "Schedules",
      "readOnly": true
     },
     "standing": {
      "type": "string",
      "description": "Standing",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/platform/batch-jobs": {
   "get": {
    "summary": "list batch-jobs",
    "operationId": "list_batch_jobs_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post batch jobs",
    "operationId": "action_batch_jobs_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch-jobs/{id}": {
   "get": {
    "summary": "get batch-jobs",
    "operationId": "get_batch_jobs_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put batch jobs",
    "operationId": "action_batch_jobs_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete batch jobs",
    "operationId": "action_batch_jobs_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/batch-jobs/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_batch_jobs_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}