REST API - Page

Available since v. 2.31.0


Move/reorder page

Available to all users, but the API checks the appropriate permissions

Additional information:

  • if the source page contains child pages, its entire tree will be moved

  • you can move a page between spaces

Method type: POST

URL:

  • {CONFLUENCE_URL}/rest/extender/1.0/content/movePage

or

  • {CONFLUENCE_URL}/rest/extender/1.0/content/reorderPage

Request format: JSON

Example request:

1 2 3 4 5 { "pageId": 123456, "targetPageId": 987654, "position": "below" }
1 2 3 4 5 { "pageId": 123456, "targetPageId": 987654, "position": "above" }
1 2 3 4 5 { "pageId": 123456, "targetPageId": 987654, "position": "append" }

Response format: JSON

Example response:

1 2 3 { "message": "The page 'Test page' already exists in space 'TEST'. You need to rename the page title before moving it." }
1 2 3 4 { "message": "Page 'Test page (Id: 851977)' moved.", "status": "done" }
1 2 3 { "message": "The source page cannot be the same as the target page." }