batch
Execute multiple API operations in a single invocation
Execute multiple Confluence API operations from a JSON array.
Input JSON array format: [ {"command": "pages get-by-id", "args": {"id": "123"}, "jq": ".title"}, {"command": "spaces get", "args": {}} ]
Output JSON array format: [ {"index": 0, "exit_code": 0, "data": "My Page"}, {"index": 1, "exit_code": 0, "data": {...}} ]
Use --input to specify a file, or pipe JSON to stdin.
| Flag | Type | Required | Description |
|---|---|---|---|
--input | string | No | path to JSON input file (reads stdin if not set) |
--max-batch | int | No | maximum number of operations per batch |
Example:
bash
cf batch