Confluence Create Multiple Pages From Template -
# Step 3: Update draft update_payload = "id": draft["id"], "title": title, "body": "storage": "value": body, "representation": "storage" requests.put(f"BASE_URL/rest/api/content/draft['id']", headers=HEADERS, json=update_payload)
Purchase Better Content Archiving or ScriptRunner – the no-code UI and built-in scheduling justify cost. confluence create multiple pages from template
None
# Step 2: Replace variables in body (Confluence storage format) body = draft["body"]["storage"]["value"] for key, value in variables.items(): body = body.replace(f"key", value) # replaces client with Nike # Step 3: Update draft update_payload = "id":
Deploy Python + REST API script stored in a Git repo, triggered via CI/CD (GitHub Actions, Jenkins). Use CSV as source of truth. "body": "storage": "value": body
Teams needing to generate documentation structures (e.g., 30 product requirement documents, 50 meeting note pages, or a wiki tree for each client) face significant manual overhead.
draft = requests.post(f"BASE_URL/rest/api/content/blueprint/instance/draft", headers=HEADERS, json=payload).json()