Hi Confluence Community,
We're experiencing several issues with the Confluence REST API regarding content retrieval and metrics calculation. Here are the specific challenges we're facing:
1. Content Type Limitations
- API Endpoint:
rest/api/content - Parameters Used:
start: 0limit: 9999expand: body.view, history, history.createdDate, version
- Issue:
- API only fetches "pages", excluding blogs and whiteboards
- Deprecated Space endpoint returns error:
"Error fetching whiteboard contents: java.lang.IllegalArgumentException: Type is not a custom content type : whiteboard"
- Impact: Unable to get a complete view of all content types in a space
2. Views Metrics Limitation
- Issue: Views metrics only calculate for pages, excluding blogs and whiteboards
- Impact: Incomplete analytics for content engagement
- Root Cause: Tied to the content type limitation in Issue #1
3. Content Creation Rate Discrepancy
- API Endpoint:
rest/api/content - Parameters:
expand: body.view, history, history.createdDate, versionstart: 0limit: 9999
- Issue: Creation rate metrics only include pages, missing blogs and whiteboards
- Impact: Inaccurate content creation analytics
4. Template Usage Detection
- API Endpoint:
rest/api/content - Issue:
- Returns empty results array
- Unable to detect template usage in pages
- No template metadata being returned
- Impact: Cannot track template usage despite known template-based pages existing
Questions:
- Is there an alternative API endpoint to fetch all content types (pages, blogs, whiteboards) in a single call?
- How can we access template metadata through the API?
- Are there plans to add comprehensive content type support in future API versions?
Any guidance or workarounds would be greatly appreciated.
Thank you!