{ "opencollection": "1.0.0", "info": { "name": "Confluence Cloud REST API v2 Attachment Page API", "version": "2.0.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Page", "type": "folder" }, "items": [ { "info": { "name": "Get Pages", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.atlassian.net/wiki/api/v2/pages", "params": [ { "name": "id", "value": "", "type": "query", "description": "Filter by page IDs. Multiple IDs can be specified as comma-separated values." }, { "name": "space-id", "value": "", "type": "query", "description": "Filter by space ID. Multiple IDs can be specified." }, { "name": "status", "value": "", "type": "query", "description": "Filter by content status." }, { "name": "title", "value": "", "type": "query", "description": "Filter by content title. Supports exact match." }, { "name": "body-format", "value": "", "type": "query", "description": "The representation format for the content body." }, { "name": "sort", "value": "", "type": "query", "description": "Sort order for results. Prefix with - for descending order. Supported fields include id, title, created-date, and modified-date." }, { "name": "cursor", "value": "", "type": "query", "description": "Used for pagination. The cursor value is returned in the response _links.next when there are more results." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return." } ] }, "docs": "Returns all pages. The number of results is limited by the limit parameter and additional results can be retrieved via the next cursor. Results can be filtered by space, status, title, and body format." }, { "info": { "name": "Create Page", "type": "http" }, "http": { "method": "POST", "url": "https://{domain}.atlassian.net/wiki/api/v2/pages", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a page in the space. Pages can be created as a child of another page by specifying the parentId. Pages are created in the current status (draft or current)." }, { "info": { "name": "Get Page by Id", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.atlassian.net/wiki/api/v2/pages/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content." }, { "name": "body-format", "value": "", "type": "query", "description": "The representation format for the content body." }, { "name": "get-draft", "value": "", "type": "query", "description": "If true, returns the draft version of the page." }, { "name": "version", "value": "", "type": "query", "description": "The version number of the content to retrieve." } ] }, "docs": "Returns a specific page. The response includes the page body in the requested format, version information, and links." }, { "info": { "name": "Update Page", "type": "http" }, "http": { "method": "PUT", "url": "https://{domain}.atlassian.net/wiki/api/v2/pages/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a page by id. The request body must include the current version number, the new title, the space id, the status, and the body in the specified representation." }, { "info": { "name": "Delete Page", "type": "http" }, "http": { "method": "DELETE", "url": "https://{domain}.atlassian.net/wiki/api/v2/pages/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content." }, { "name": "purge", "value": "true", "type": "query", "description": "If true, the page is permanently deleted instead of moved to trash." } ] }, "docs": "Deletes a page by id. By default pages are moved to trash. To purge a page permanently, set the purge parameter to true." }, { "info": { "name": "Get Child Pages", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.atlassian.net/wiki/api/v2/pages/:id/children", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content." }, { "name": "cursor", "value": "", "type": "query", "description": "Used for pagination. The cursor value is returned in the response _links.next when there are more results." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return." }, { "name": "sort", "value": "", "type": "query", "description": "Sort order for results. Prefix with - for descending order. Supported fields include id, title, created-date, and modified-date." } ] }, "docs": "Returns the child pages of a specific page, ordered by position in the page tree." }, { "info": { "name": "Get Pages in Space", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.atlassian.net/wiki/api/v2/spaces/:id/pages", "params": [ { "name": "id", "value": "abc123", "type": "path", "description": "The ID of the space." }, { "name": "depth", "value": "all", "type": "query", "description": "Filter by depth in the page tree. Use root to get only top-level pages." }, { "name": "status", "value": "", "type": "query", "description": "Filter by content status." }, { "name": "body-format", "value": "", "type": "query", "description": "The representation format for the content body." }, { "name": "sort", "value": "", "type": "query", "description": "Sort order for results. Prefix with - for descending order. Supported fields include id, title, created-date, and modified-date." }, { "name": "cursor", "value": "", "type": "query", "description": "Used for pagination. The cursor value is returned in the response _links.next when there are more results." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return." } ] }, "docs": "Returns all pages in a specific space. Supports filtering by status and depth." } ] } ], "bundled": true }